How would you stop a class from class from being derived or
inherited.
Answer Posted / vishaka
The class shoul be made abstract to stop it from being
derived or inherited. To make a class abstract, it should
have atleast one pure virtual function.
| Is This Answer Correct ? | 2 Yes | 21 No |
Post New Answer View All Answers
What is the importance of oop?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
Write a c++ program to display pass and fail for three student using static member function
What is the example of polymorphism?
What is static modifier?
What is abstraction in oop with example?
What are the benefits of interface?
What is multilevel inheritance?
Where You Can Use Interface in your Project
Can we create object of interface?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Why is destructor used?
Why do we use oop?
What is byval and byref? What are differences between them?
What is object in oop?