C# Programming - Polymorphism

Exercise : Polymorphism - General Questions
  • Polymorphism - General Questions
1.
Which of the following unary operators can be overloaded?
  1. true
  2. false
  3. +
  4. new
  5. is
1, 2, 3
3, 4, 5
3 only
5 only
Answer: Option
Explanation:
No answer description is available. Let's discuss.

2.
A derived class can stop virtual inheritance by declaring an override as
inherits
extends
inheritable
not inheritable
sealed
Answer: Option
Explanation:
No answer description is available. Let's discuss.

3.
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?
new
base
overloads
override
overridable
Answer: Option
Explanation:
No answer description is available. Let's discuss.

4.
Which of the following statements is correct?
When used as a modifier, the new keyword explicitly hides a member inherited from a base class.
Operator overloading works in different ways for structures and classes.
It is not necessary that all operator overloads are static methods of the class.
The cast operator can be overloaded.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

5.
Which of the following keyword is used to overload user-defined types by defining static member functions?
op
opoverload
operator
operatoroverload
udoperator
Answer: Option
Explanation:
No answer description is available. Let's discuss.