Example #1
0
        static void Snippet1()
        {
            SalaryDetails sl = new SalaryDetails();

            sl.EmployeeName = "Manh Hung";
            Console.WriteLine("Employee Name: " + sl.EmployeeName);
        }
Example #2
0
        public void Main1()
        {
            SalaryDetails sld1 = new SalaryDetails();

            sld1.EmpName = "Prank";
            sld1.EmpID   = 10;
            sld1.Salary  = 1000.25F;
            Console.WriteLine("Name: " + sld1.EmpName);
            Console.WriteLine("ID: " + sld1.EmpID);
            Console.WriteLine("Salary: " + sld1.Salary + "$");
        }
Example #3
0
        static void Snippet7()
        {
            SalaryDetails sl = new SalaryDetails();

            sl.Main1();
        }