According to real life.
Class ----------------Like as Papa/Your parents/guardians this means meaning of class is my parents last_name is Jha (it is a keyword like class in oops/C#), so my name is also Dheeraj kumar jha.
similarly..
Class <and Class Name>
e.g.:
- Class Employee
- {
- //it is a scope of class. that means class area.
- }
NOTE:
So whenever we are software developing first of all we are required to know that programming formatting,
So whenever we are software developing first of all we are required to know that programming formatting,
and we know that in every language we are required to use the Main() method or it is said to be Thread so about Main(). I explain in a later section.
Main also has a Scope.
- Main()
- {
- //it is a scope of Main.
- }
In C# language:
- class Employee
- {
- int Emp_Id;
- string Emp_Name;
- public Static Void Main()
- {
- Employee empobj = new Employee();
- }
- }
Above the example shows that class is a keyword and by that keyword we create a new data type called Employee which can support multiple data types.
Like employee could be support integer data type, string data type, etc.
So finally how can we access class variable? Create an object of a class and finally access object.(dot).
Like:
- Employee empobj=new Employee();
- and finally access
- empobj.Emp_Id=12;
- empobj.Emp_Name="Dheeraj Kumar Jha";
I will briefly explain about class in later sections.

Bhuvanesh MohankumarPosted May 10, 2016, 2:27 AM
Good one..
Sonu ChaudharyPosted Mar 16, 2016, 3:21 AM
good starting