Example On single Inheritance

Parent is a 1 Character . single Parent can have many childrens so children has many characters . but all Childrens acquire Properties From Single Parent.

Create Single Inheritance using Local Class.

Procedure :

Step 1. Go To SE38 . Create Program. Create Class Definition.



Step 2. Create Class Implementation.



Step 3. Create Obejct & Call Methods.



Step 4. Output.



0 comments:

Post a Comment