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
Define stacks. Provide an example where they are useful.
Which one is better- macro or function?
What is a local reference?
What is doubly linked list in c++?
What are inline functions? What is the syntax for defining an inline function?
You run a shell on unix system. How would you tell which shell are you running?
How many ways can a variable be initialized into in C++?
Why do we use setw in c++?
What is the best c++ book?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
Explain overriding.
what is upcasting in C++?
What is capacity in vector in c++?
What is the difference between while and do while loop? Explain with examples.
What are the advantages of c++ over c?