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


Please Help Members By Posting Answers For Below Questions

What is encapsulation example?

549


Why we use classes in oop?

583


what are the different types of qualifier in java?

1842


What is overloading in oop?

577


Get me a number puzzle game-program

1694






What is class in oop with example?

621


What is destructor in oop?

625


What is interface in oop?

664


What are the benefits of oop?

607


Which is not an object oriented programming language?

544


Can you inherit a private class?

631


How does polymorphism work?

635


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1895


What is difference between pop and oop?

609


What is the fundamental idea of oop?

638