Discussion :: Polymorphism - General Questions (Q.No.2)
A derived class can stop virtual inheritance by declaring an override as
Answer: Option E
No answer description available for this question.
|Sachin said: (Sep 29, 2011)|
|Ch L N Raju said: (Nov 20, 2012)|
|The keyword 'sealed' indicates that the class methods can't be inherited by any derived class.|
|Santosh said: (Jul 18, 2013)|
|Sealed keyword always come before override keyword and because override keyword is implicitly virtual and to make that method should not be overridden by inherited class we use sealed keyword.
So that the class methods can't be inherited by any derived class.
|Om Pandey said: (Sep 25, 2015)|
|Sealed keyword implicitly behave as static, so it stop the inheritance to next level.|
|Mahesh S Guttedar said: (Feb 12, 2016)|
|A sealed class cannot be inherited. It is an error to use a sealed class as a base class. Use the sealed modifier in a class declaration to prevent inheritance of the class.|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.