C# Programming - Polymorphism

Exercise : Polymorphism - General Questions
  • Polymorphism - General Questions
11.
Which of the following operators cannot be overloaded?
  1. true
  2. false
  3. new
  4. ~
  5. sizeof
1, 3
2, 4
3, 5
All of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

12.
Which of the following modifier is used when a virtual method is redefined by a derived class?
overloads
override
overridable
virtual
base
Answer: Option
Explanation:
No answer description is available. Let's discuss.

13.
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
new
base
virtual
overrides
overloads
Answer: Option
Explanation:
No answer description is available. Let's discuss.

14.
Which of the following can be declared as a virtual in a class?
  1. Methods
  2. Properties
  3. Events
  4. Fields
  5. Static fields
1, 2, 3
3, 5
2, 4
2, 3, 5
Answer: Option
Explanation:
No answer description is available. Let's discuss.

15.
Which of the following statements is correct?
Only one object can be created from an abstract class.
By default methods are virtual.
If a derived class does not provide its own version of virtual method then the one in the base class is used.
If the method in the derived class is not preceded by override keywords, the compiler will issue a warning and the method will behave as if the override keyword were present.
Each derived class does not have its own version of a virtual method.
Answer: Option
Explanation:
No answer description is available. Let's discuss.