Thursday, 26 April 2018

What is Class & Object Orientation in C# ASP.NET?

What is Class & Object Orientation in C# ASP.NET?






What is Class?

  • Group of similar type of object is known as the Class.
  • Similar type of Object mean those Object that has common properties & Behaviors.
  • A Class define properties &  behavior of object & used to create object.
  • If you want to create an object than you need to define a Class that class define properties & behavior of the object.


What is Object Orientation?

If you want to create a program which can create object during execution then you need to define a class in the program in side that Class you need to define Variable & Method.
Variable will become properties of object & method will become behavior of objects.
An Class will be used to create the object.

Class AA
{

Variable;
Method;


}

In the code class AA will be used to create object variable of the class will become properties of the object & method will become behavior of the object.
This process is called object orientation.

The language that will be used to create such type of program is called object orientation programming language.

No comments:

Post a comment

Popular Posts