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
Who created c++?
What is the difference between a definition and a declaration?
How does c++ structure differ from c++ class?
Explain the properties and principles of oop.
Which bitwise operator is used to check whether a particular bit is on or off?
What is do..while loops structure?
Are there interfaces in c++?
How do you print a string on the printer?
Is c++ the hardest language?
How is computer programming useful in real life?
What is a character in c++?
What is the need of a destructor?
What's the order in which the objects in an array are destructed?
What do you mean by static variables?
Why do we use pointers in c++?