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


Please Help Members By Posting Answers For Below Questions

What are the three main types of variables?

600


What is variable example?

595


What is a null tree?

632


Where is pseudocode used?

565


What is byval and byref? What are differences between them?

1689






What is the purpose of enum?

581


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(); }

1986


can inline function declare in private part of class?

3658


What is this pointer in oop?

557


What do you mean by variable?

577


What is use of overloading?

608


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2008


What is static modifier?

632


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?

1581


Do you know about multiple inheritance?

641