InterviewSolution
Saved Bookmarks
| 1. |
Which of the given modifiers can be used to prevent Method overriding?(a) Static(b) Constant(c) Sealed(d) finalThe question was asked in exam.My question is based upon Method Overriding topic in section Object Oriented Concepts of C# |
|
Answer» CORRECT option is (c) Sealed Easy explanation - When an instance method declaration includes the sealed MODIFIER, the method is said to be sealed method. It means a DERIVED CLASS cannot OVERRIDE this method. |
|