How would you stop a class from class from being derived or
inherited.
Answer Posted / satya
By Declaring the Class as 'Sealed' in C# or
as "NotInheritable" in VB.NET
Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What are the three main types of variables?
What is variable example?
What is a null tree?
Where is pseudocode used?
What is byval and byref? What are differences between them?
What is the purpose of enum?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
can inline function declare in private part of class?
What is this pointer in oop?
What do you mean by variable?
What is use of overloading?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is static modifier?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
Do you know about multiple inheritance?