How would you stop a class from class from being derived or
inherited.

Answer Posted / selvam

but onething.If you make constructor as private you will
not be able to create an object of that class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3838


Why do we need polymorphism in c#?

686


Are polymorphisms mutations?

703


what type of question are asked in thoughtworks pair programming round ?

1762


What is oops with example?

564






What causes polymorphism?

577


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3555


What does <> mean pseudocode?

624


What is polymorphism what is it for and how is it used?

574


What are different oops concepts?

578


Describe these concepts: Polymorphism, Inheritance and Abstraction.

614


Why do we use class in oops?

555


What is destructor oops?

625


to find out the minimum of two integer number of two different classes using friend function

1642


What is difference between inheritance and polymorphism?

573