InHeritence
============
Inheritence is the concept by which properties of
one entity are avilabel to another.
Using this concept you can create new classes from
existing classes instead of rewritten.
new class is known as Derived Class
Old Class is Known as Base Class
New Class inherits all the properties of base class
and add new properies here.
Old class is unchanged.
Types of inheritence
=====================
Single Inheritence
Multiple Inheritence
Multilevel Inheritence
Single Inheritence
==================
The Derived class have only one base class.
Multiple Inheritence
=====================
The New Class is derived from more than one base class.
Multilevel Inheritence
=======================
Level by Level of inherience is known as Multilevel.
No comments:
Post a Comment