Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Polymorphism Questions
When redefining a virtual method from a base class in C#.NET, which modifier must the derived class use?
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.
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.
Operator overloading and member hiding in C#.NET — choose all correct statements (single best answer option lists all true ones).
Unary operator overloading in C#.NET — which unary operators among the list are overloadable?
Preventing further overrides in C#.NET — which modifier stops virtual inheritance (no further overriding) in a derived class?
Non-overloadable operators in C#.NET — identify which among the list cannot be overloaded.
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() { } }
Keyword used to replace base-class behavior with a derived implementation (polymorphic override) in C#.NET.
Choose the correct statement about member hiding and operator overloading in C#.NET.
Virtual method behavior when not overridden in a derived class — choose the correct statement.
In C# operator overloading, which of the following statements is correct?
C# syntax check: choose the correct way to overload the + operator for a user-defined type 'sample'.
In C#, which keyword is used in method declarations to overload operators for user-defined types?
Run-time polymorphism (method overriding) in C#: which statements are required/true?
In a C# class, which members can be declared as virtual (eligible for overriding)?