What is inheritance?

Answer Posted / sri

Inheritance is a type of relationship among classes, wherein
one class shares the structure or behaviour defined in one
(single inheritance) or more (multiple inheritance) other
classes. Inheritance defines a "kind of" hierarchy among
classes in which a sub class inherits from one or more
super-classes; a sub-class typically augments or redefines
the existing structure and behaviour of its super-classes.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain serialization and overriding?

634


What is dynamic or run time polymorphism?

559


What is the use of finalize method?

577


explain the difference between operator overloading and function overloading.

574


How to achieve data abstraction?

526






How many methods are there in the externalizable interface?

555


Define a good interface?

543


Can you instantiate an abstract class and what is an inner class?

550


Can a class implement two interfaces having default method with same name and signature?

572


Is it possible to override private virtual methods?

537


Which OOPS concept is used as a reuse mechanism?

593


Can we use static method definitions in interfaces?

548


Is is possible to define our own functional interface?

595


Explain about a class in oop?

590


Is iterator a class or interface? What is its use?

531