q what is inheritanceinheritance-inheritance is


Q. What is Inheritance?

Inheritance:-Inheritance is defined as the property of objects by which instances of a class can have access to data and programs contained in a previously defined class, without those definitions being restated. Classes are linked together in a hierarchy. They form a tree, whose root is the class of "objects". Each class (except for the root class) will have a super class (a class above it in the hierarchy) and possibly subclasses. A class can inherit (i.e. acquire) methods from its super class and in turn can pass methods on to its subclasses. A subclass must have all the properties of the parent class and other properties as well.

Request for Solution File

Ask an Expert for Answer!!
Software Engineering: q what is inheritanceinheritance-inheritance is
Reference No:- TGS0326850

Expected delivery within 24 Hours