Polymorphism Questions
Practice Polymorphism MCQs with answers and explanations. Page 1 of 1.
Category
C# Programming
Topic
Polymorphism
Page
1 / 1
Mode
Practice
Questions
Open any question to view the answer and explanation.
When redefining a virtual method from a base class in C#.NET, which modifier must the derived class use?
Open
View answer
C#.NET virtual members and overriding — which base-class modifier allows a derived instance to completely take over a member?
In object-oriented C# design, a base class must opt-in to polymorphic override behavior. Choose the modifier the base class must use so that a derived class instance can provide its own implementation that replaces the base behavior at runtime.
Open
View answer
Overriding rules in C#.NET — identify the correct statement about virtual/abstract methods and overrides.
Select the statement that accurately reflects C# method overriding requirements.
Open
View answer
Operator overloading and member hiding in C#.NET — choose all correct statements (single best answer option lists all true ones).
Open
View answer
Unary operator overloading in C#.NET — which unary operators among the list are overloadable?
Open
View answer
Preventing further overrides in C#.NET — which modifier stops virtual inheritance (no further overriding) in a derived class?
Open
View answer
Non-overloadable operators in C#.NET — identify which among the list cannot be overloaded.
Open
View answer
Hiding vs overriding — what does the derived method do in this code?
public class Sample { public int x; public virtual void fun() { } }
public class DerivedSample : Sample { new public void fun() { } }
Open
View answer
Keyword used to replace base-class behavior with a derived implementation (polymorphic override) in C#.NET.
Open
View answer
Choose the correct statement about member hiding and operator overloading in C#.NET.
Open
View answer
Virtual method behavior when not overridden in a derived class — choose the correct statement.
Open
View answer
In C# operator overloading, which of the following statements is correct?
Open
View answer
C# syntax check: choose the correct way to overload the + operator for a user-defined type 'sample'.
Open
View answer
In C#, which keyword is used in method declarations to overload operators for user-defined types?
Open
View answer
Run-time polymorphism (method overriding) in C#: which statements are required/true?
Open
View answer
In a C# class, which members can be declared as virtual (eligible for overriding)?
Open
View answer
Practice smarter
Solve a few questions daily and revisit weak topics regularly to improve accuracy.