| 1. | Which of the following are necessary for Run-time Polymorphism? 1 The overridden base method must be virtual, abstract or override. 2 Both the override method and the virtual method must have the same access level modifier. 3 An override declaration can change the accessibility of the virtual method. 4 An abstract inherited property cannot be overridden in a derived class. 5 An abstract method is implicitly a virtual method. |
|||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
| 2. | Which of the following statements is correct? |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
| 3. | Which of the following can be declared as a virtual in a class? 1 Methods 2 Properties 3 Events 4 Fields 5 Static fields |
|||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
| 4. | 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 |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
| 5. | Which of the following modifier is used when a virtual method is redefined by a derived class? |
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
| 6. | Which of the following operators cannot be overloaded? 1 true 2 false 3 new 4 ~ 5 sizeof
|
|||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
| 7. | Which of the following statements is correct?
|
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
| 8. | Which of the following statement is correct about the C#.NET code snippet given below? public class Sample |
|||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
