Exemplo n.º 1
0
        public static void Main()
        {
            FullTimeEmployee employeeOne = new FullTimeEmployee();

            employeeOne.firstName = "Ivan";
            employeeOne.lastName  = "Georgiev";
            employeeOne.PrintFullName();


            PartTimeEmployee employeeTwo = new PartTimeEmployee();

            employeeTwo.firstName = "Tsvetan";
            employeeTwo.lastName  = "Salkin";
            employeeTwo.PrintFullName();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            FullTimeEmployee FTE = new FullTimeEmployee();

            FTE.firstName    = "Ram";
            FTE.lastName     = "prasad";
            FTE.yearlySalary = 50000;
            FTE.PrintFullName();
            PartTimeEmployee PTE = new PartTimeEmployee();

            PTE.firstName  = "sachin";
            PTE.lastName   = "tendulkar";
            PTE.commission = 40;
            PTE.PrintFullName();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            FullTimeEmployee FTE = new FullTimeEmployee();

            FTE.FirstName    = "First FTE";
            FTE.LastName     = "Last FTE";
            FTE.YearlySalary = 50000;
            FTE.PrintFullName();
            PartTimeEmployee PTE = new PartTimeEmployee();

            PTE.FirstName    = "First PTE";
            PTE.LastName     = "Last PTE";
            PTE.HourlySalary = 10;
            PTE.PrintFullName();
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            FullTimeEmployee FTE = new FullTimeEmployee();

            FTE.FirstName    = "Praveen";
            FTE.LastName     = "Prajapati";
            FTE.yearlySalary = 50000f;
            FTE.PrintFullName();

            PartTimeEmployee PTE = new PartTimeEmployee();

            PTE.FirstName  = "Chandan";
            PTE.LastName   = "Prajapati";
            PTE.HourlyRate = 407;
            PTE.PrintFullName();
        }
Exemplo n.º 5
0
        public static void Main()
        {
            FullTimeEmployee FTE = new FullTimeEmployee();

            FTE.FirstName    = "Aniket";
            FTE.LastName     = "Dharmadhikari";
            FTE.YearlySalary = 500000;

            FTE.PrintFullName();


            PartTimeEmployee PTE = new PartTimeEmployee();

            PTE.FirstName    = "Tinki";
            PTE.LastName     = "Dharmadhikari";
            PTE.HourlySalary = 200000;
            PTE.PrintFullName();
        }
Exemplo n.º 6
0
        static void Main(string[] args)
        {
            FullTimeEmployee FTE = new FullTimeEmployee();

            FTE.FirstName    = "Rajiv";
            FTE.LastName     = "Meheta";
            FTE.Email        = "*****@*****.**";
            FTE.YearlySalary = 20000;
            FTE.PrintFullName();

            PartTimeEmployee PTE = new PartTimeEmployee();

            PTE.FirstName  = "Rohan";
            PTE.LastName   = "Singh";
            PTE.Email      = "*****@*****.**";
            PTE.HourlyRate = 5000;
            PTE.PrintFullName();

            Console.Read();
        }
Exemplo n.º 7
0
        static void Main(string[] args)
        {
            //Inheritance allows for code re-use
            //c# suuports single inheritence
            //Multi level inheritance is allowed
            //Parent class constructors are executed before
            //child class constructors

            FullTimeEmployee fte = new FullTimeEmployee();

            fte.FirstName    = "seefeesaw";
            fte.LastName     = "shongwe";
            fte.YearlySalary = 5000000;
            fte.PrintFullName();

            PartTimeEmployee pte = new PartTimeEmployee();

            pte.FirstName  = "seefeesaw";
            pte.LastName   = "shongwe";
            pte.HourlyRate = 1250;
            pte.PrintFullName();
        }