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

What is for loop and its syntax?

598


Where is pseudocode used?

569


Which is better struts or spring?

624


What is encapsulation process?

584


What is pointer in oop?

541






explain sub-type and sub class? atleast u have differ it into 4 points?

1840


What is destructor oops?

625


Can we have inheritance without polymorphism?

618


How do you use inheritance in unity?

595


Can static class have constructor?

587


when to use 'mutable' keyword and when to use 'const cast' in c++

1651


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1944


What is the purpose of enum?

585


What is protected in oop?

605


Write a c++ program to display pass and fail for three student using static member function

2820