Example #1
0
    public static void Main()
    {
        FullTimeEmp FTE = new FullTimeEmp();

        FTE.Fname        = "Suyog";
        FTE.Lname        = "Shelar";
        FTE.YearlySalary = 40000;
        FTE.FullName();


        PartTimeEmp PTE = new PartTimeEmp();

        PTE.Fname = "Suyog";
        PTE.Lname = "Shelar";
        PTE.FullName();
    }
Example #2
0
    public static void Main()
    {
        FullTimeEmp FT = new FullTimeEmp();

        FT._firstname = "Geetha";
        FT._lastname  = "Yedida";
        FT.FullName();

        PartTimeEmp PT = new PartTimeEmp();

        PT._firstname = "Geetha";
        PT._lastname  = "Yedida";
        PT.FullName();

        // base class can be also invoked from the child class like this
        //Employee PT =  PartTimeEmp();
        //PT._firstname = "Geetha";
        //PT._lastname = "Yedida";
        //PT.FullName();
    }