How would you stop a class from class from being derived or
inherited.
Answer Posted / stavanm
By Creating class as a final
final class A{
// code
}
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is meant by multiple inheritance?
Why multiple inheritance is not allowed?
write a C++ program for booking using constructor and destructor.
What is the difference between procedural programming and oops?
What is abstraction in oop?
What is abstraction example?
What does I oop mean?
What is abstraction in oop with example?
What is the diamond problem in inheritance?
What is the renewal class?
What is data binding in oops?
Why is object oriented programming so hard?
What is object in oop with example?
what is the sylabus for priliminaries?
What is oops?what is its use in software engineering?