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
When do we run a shell in the unix system?
What does floor mean in c++?
Write syntax to define friend functions in C++.
When do you call copy constructors?
What is the default access level?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Difference between overloading vs. Overriding
Can I learn c++ without knowing c?
What does catch(…) mean?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
Write a program which uses Command Line Arguments
Explain the concept of friend function in c++?
What is a local variable?
What is a string example?
What is a try block?