Polymorphism on C# related Questions and Answers

Question 2 : In order for an instance of a derived class to completely take over a class member from a base class, the base class has to declare that member as
1. new
2. base
3. virtual
4. overrides
5. overloads
View Answer   Discuss with Members

Question 3 : Which of the following modifier is used when a virtual method is redefined by a derived class?
1. overloads
2. override
3. overridable
4. virtual
5. base
View Answer   Discuss with Members

Question 7 : Which of the following keyword is used to overload user-defined types by defining static member functions?
1. op
2. opoverload
3. operator
4. operatoroverload
5. operatoroverload
View Answer   Discuss with Members

Question 9 : Which of the following keyword is used to change the data and behavior of a base class by replacing a member of a base class with a new derived member?
1. new
2. base
3. overloads
4. override
5. overridable
View Answer   Discuss with Members

Question 10 : A derived class can stop virtual inheritance by declaring an override as
1. inherits
2. extends
3. inheritable
4. not inheritable
5. sealed
View Answer   Discuss with Members


View 1 - 10 of 10 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter