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

Answer Posted / ravinandan

Make constructor of the class as private.

Is This Answer Correct ?    7 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can main method override?

585


Which is not an object oriented programming language?

544


Is react oop?

611


Can we define a class within the interface?

555


What is the renewal class?

2167






What is the point of oop?

656


What are the features of oop?

641


What does no cap mean?

592


What is destructor give example?

603


Is abstract thinking intelligence?

594


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

3837


What is oops?what is its use in software engineering?

557


What is inheritance and how many types of inheritance?

622


What is cohesion in oop?

624


what's the basic's in dot net

1738