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
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
When should I use unitbuf flag?
Is it possible to get the source code back from binary file?
Write a struct time where integer m, h, s are its members?
What it is and how it might be called (2 methods).
What is meant by iomanip in c++?
Why do we need runtime polymorphism in c++?
What is constant in c++ with example?
Explain the use of virtual destructor?
What is c++ virtual inheritance?
What do manipulators do?
What is the difference between multiple and multilevel inheritance in c++?
What information can an exception contain?
What is iomanip c++?
Differentiate between C and C++.