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 an advantage of polymorphism?

587


what's the basic's in dot net

1734


What does it mean when someone says I oop?

574


What is inheritance in simple words?

621


Why is there no multiple inheritance?

562






what is graphics

2004


What is the difference between abstraction and polymorphism?

606


What is byval and byref? What are differences between them?

1684


explain sub-type and sub class? atleast u have differ it into 4 points?

1830


What are oops methods?

562


What is encapsulation in simple terms?

535


What is abstract class in oop?

526


What is protected in oop?

598


What polymorphism means?

616


What is polymorphism oop?

614