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
Why is static class not inherited?
What polymorphism means?
Is enum a class?
What is ambiguity in inheritance?
What is byval and byref? What are differences between them?
What do you mean by Encapsulation?
What is multilevel inheritance in oop?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is class in oop with example?
Whats oop mean?
Why do pointers exist?
write a programe to calculate the simple intrest and compund intrest using by function overlading
How is class defined?
What are the three main types of variables?
What is new keyword in oops?