Exemplo n.º 1
0
        static void Main(string[] args)
        {
            //Write your code here
            SalesManagement sm1 = new SalesManagement();

            sm1.setRole("Leader");
            sm1.setEmpId(100);
            sm1.setName("AAA");
            sm1.setSalary(12345);
            sm1.setBonus(3000);
            Console.WriteLine("Employee Details are");
            Console.WriteLine("EmpId is = " + sm1.getEmpId());
            Console.WriteLine("Emp Name is = " + sm1.getName());
            Console.WriteLine("Emp Salary is = " + sm1.getSalary());
            Console.WriteLine("Emp Bonus is = " + sm1.getBonus());
            Console.WriteLine("Emp Role is = " + sm1.getRole());
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //Write yoyr code here
            SalesManagement sm1 = new SalesManagement();

            sm1.setEmpId(100);
            sm1.setName("AAA");
            sm1.setSalary(12345);
            sm1.setBonus(3000);

            Console.WriteLine("Employee Details are");
            Console.WriteLine("EmpId is = " + sm1.getEmpId());
            Console.WriteLine("Emp Name is = " + sm1.getName());
            Console.WriteLine("Emp Salary is = " + sm1.getSalary());
            Console.WriteLine("Emp Bonus is = " + sm1.getBonus());

            Address adr = new Address();

            adr.setStreetName("xxx");
            adr.setCityName("Bangalore");

            Console.WriteLine("Emp streetName is = " + adr.getStreetName());
            Console.WriteLine("Emp streetName is = " + adr.getCityName());
        }