Its always nice to re-use something instead of creating it again & again. Since c-sharp is a pure Oop's oriented language its supports re-usability. To achieve re-usability we must create classes from existing one's. The process through which we can achieve this is known as Inheritance.It can be achieved in two ways
1.)Classical form.
2.)Containment form.
Inheritance represents represents a class of relationship b/w two classes
1.)Classical form.
2.)Containment form.
Inheritance represents represents a class of relationship b/w two classes
1.)Classical Inheritance:-
Simple Inheritance |
2.)Containment Inheritance:-
Multiple Inheritance |
No comments:
Post a Comment