What is an object?

What is an object?

Object:-Object is the basic run time entity.

 The object type is based on System.Object in the .NET Framework. You can assign values of any type to variables of type object.

All data types, predefined and user-defined, inherit from the System.Object class. The object data type is the type to and from which objects are boxed.

Exapmle:-
        class a
{}
public static void Main()
{
a ob= new a();// create object ob of class a;
}


By:kamal
Date:2013-10-10 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Links

C interview questions and answers for experienced and fresher