Click To Zoom Image-Part-1 |
Click To Zoom Image-Part-2 |
Part 1--Explanation according to the image
- All the code which is common is created as base class (inheritanceexample)
- inheritanceexample properties is inherited by fulltimeemployee(Derived Class)
- Now Fulltimeemployee include all the fields of inheritance example
- Printdetail() method is created as shown in image
- Instance is created of fulltimeemployee as it inherits attributes and behavior of base class
- Printdetail Method is call