How would you stop a class from class from being derived or
inherited?The constructer should not be Private,as object
instantiation should be allowed.
Answer Posted / s.v.vignesh
heyy .. very simple yar..
juz add final keyword b4 t class..
u cannot inherit tat class.....
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Is java made in c++?
How are Structure passing and returning implemented by the compiler?
What are structures and unions?
What are default parameters? How are they evaluated in c++ function?
How to defines the function in c++?
What is boyce codd normal form in c++?
What is stream and its types in c++?
What is the difference between the compiler and the preprocessor?
What operator is used to access a struct through a pointer a) >> b) -> c) *
Is nan a c++?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
What is the keyword auto for?
How are the features of c++ different from c?
What are built-in functions? What is the syntax for the definition?
What is setw manipulator in c++?