Question: Which of the following statement is correct about the C#.NET code snippet given below?
Options
A : DerivedSample class hides the fun() method of base class.
B : The DerivedSample class version of fun() method gets called using Sample class reference which holds DerivedSample class object.
C : The code replaces the DerivedSample class version of fun() method with its Sample class version.
D : It is not possible to hide Sample class version of fun() method without use of new in DerivedSample class.
Polymorphism - General Questions more questions
Which of the following statements is correct?
Which of the following keyword is used to overload user-defined....
Which of the following is the correct way to overload....
Which of the following statements is correct?
Which of the following statements are correct?
Which of the following statements is correct?
Which of the following operators cannot be overloaded?
Which of the following modifier is used when a virtual....
In order for an instance of a derived class to....
Which of the following can be declared as a virtual....
Attributes - General Questions more Online Exam Quiz
Inheritance - General Questions
Interfaces - General Questions
Namespaces - General Questions
Properties - General Questions
Structures - General Questions
Advanced SQL - General Questions