C Sharp Polymorphism Questions and Answers
Practice ModeShowing 10 of 15 questions
Q11
Which of the following modifier is used when a virtual method is redefined by a derived class?
Answer: Option B
Q12
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
Answer: Option C
Q13
Which of the following can be declared as a virtual in a class?
Methods
Properties
Events
Fields
Static fields
Answer: Option A
Q14
Which of the following statements is correct?
Answer: Option C
Q15
Which of the following are necessary for Run-time Polymorphism?
The overridden base method must be virtual, abstract or override.
Both the override method and the virtual method must have the same access level modifier.
An override declaration can change the accessibility of the virtual method.
An abstract inherited property cannot be overridden in a derived class.
An abstract method is implicitly a virtual method.
Answer: Option B