Inheritance

Click To Zoom Image-Part-1
Click To Zoom Image-Part-2







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