Search This Blog

Thursday, March 22, 2012

Create a class

for create a class use the keyword class then name of the class here is an example.

class Employee
    {
        public string FirstName
        {
            get;
            set;
        }
        public string EmpID
        {
            get;
            set;
        }
        public int Age
        {
            get;
            set;
        }
        public bool Save()
        {
            return true;
        }
        public DateTime DateOfJoining
        {
            get;
            set;
        }

No comments:

Post a Comment