For Asp.net Training with C# Click Here
Written By:-Isha Malhotra
Email:-malhotra.isha3388@gmail.com
How Object is Created?
Or
Why classes are
called Reference Type
As we know that class is a user defined
data type.
For creating the object of any class we
write the following code:-
Class_Name
Object_Name=new Class_Name();
Suppose the class name is calculator. Then
we create the object like that
Calculator cal = new calculator();