- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies

Search Interview Questions

Question: What is an object?Define a class.

Answer: Object is an instance to call the methods and properties of the class.

Category C# Interview Questions & Answers - Exam Mode / Learning Mode
Rating (0.3) By 3915 users
Added on 12/13/2012
Views 33019
Rate it!
Question: What is an object?Define a class.

Object is an instance to call the methods and properties of the class. Source:

Answered by: thamaraiselvi | Date: 2/2/2008 | Contact thamaraiselvi Contact thamaraiselvi

object is can be say as a instance of class. Source:

Answered by: Tarun jain | Date: 2/5/2008 | Contact Tarun jain Contact Tarun jain

Class is a user defined abstract data type, which describes the attributes and behaviors of a real world object.

Object is an instance of a class. Source:

Answered by: Sreedevi V S | Date: 2/5/2008 | Contact Sreedevi V S Contact Sreedevi V S

object is nothing but user defined variable of class type.
Using this one we can call all methods and members of a class.

class is combination of members and methods. Source:

Answered by: Lakshminarayana Nalluri | Date: 2/7/2008 | Contact Lakshminarayana Nalluri Contact Lakshminarayana Nalluri

Class:-It is nothing but a template ,style or blueprint which doesn't have its physical exitance but have some property and behavior.

Object:-itis nothing but the instance of the class which have its physical exitance han have some property and behaviour. Source:

Answered by: Abhijit Das | Date: 2/7/2008 | Contact Abhijit Das Contact Abhijit Das

Classes creates an object and object use methods to communicate between them. Source:

Answered by: anju suryavanshi | Date: 2/16/2008 | Contact anju suryavanshi Contact anju suryavanshi

Class defines abstract characteristics of a thing.
for e.g :car is a class.
A class have methods and attributes.

Object is the instance of a class.
Here Benz is the object of the class car Source:

Answered by: Ann | Date: 2/28/2008 | Contact Ann Contact Ann

An object is an instance of a class using which you can represent the real world objects.A class is considered to be the blue print. For example if you consider the case of constructing a house, the blueprint of the house is considered to be the class whereas the house itself is an object. Source:

Answered by: Jaya | Date: 2/29/2008 | Contact Jaya Contact Jaya

object-it is a instance of a class
class-it is a user defined data type. Source:

Answered by: neha | Date: 4/12/2008 | Contact neha Contact neha

An object is an instance of a class. It is a physical representation of a class.

A class is wrapper of methods and variables. It is a logical representation. Source:

Answered by: ajeet kumar | Date: 4/15/2008 | Contact ajeet kumar Contact ajeet kumar

A class is nothing but a template of an object. A class describes all the attributes of a object which is a collection of Methods and variables.

Object is the instance of the class.

Say some real world example for classes and object?
Consider an example car is an class and its methods and variables are brake, steering etc.These are the objects of the class car.

Answered by: Rajkumar.M | Date: 4/21/2008 | Contact Rajkumar.M Contact Rajkumar.M

object:object is instance of a class
class:class is collection of members and methods,also it is a usderdefined abstract type Source:

Answered by: niranjan | Date: 5/3/2008 | Contact niranjan Contact niranjan

A Class is a User defined Data type and is a blue print of Real world entity which represents this entity using some Methods and Properties.

A Object is an instance of a class which represents Some particular Entity with properties and methods of a Class Source:

Answered by: Jasuja | Date: 6/17/2008 | Contact Jasuja Contact Jasuja

Class is a collection of objects.Object is an instance of a class,using this we can access the properties of a class. Source:

Answered by: radhika | Date: 1/27/2009 | Contact radhika Contact radhika

An object is a combination of message and data.Object can Receive and send message and use message to interact with each other.
Group of object with common characteristics is called class Source:

Answered by: Sonu kumar | Date: 3/5/2009 | Contact Sonu kumar Contact Sonu kumar

class is collection of meathod
its behave like template ,blue print of real word
which have no physical existence
but object is a instence of class
and call the meathod define in class,which have physical existence Source:

Answered by: rahil | Date: 4/5/2009 | Contact rahil Contact rahil

Object is an instance of a class which contains properties and methods of a class Source:

Answered by: Naveen Soni | Date: 5/21/2009 | Contact Naveen Soni Contact Naveen Soni

Class: A class is a template/bluprint for creating an object

Object: An Object is an entity that has properties for Validations, Methods for functionality and depectign the change of an event. Source:

Answered by: Nageswara Rao | Date: 8/13/2009 | Contact Nageswara Rao Contact Nageswara Rao

an Object is an instance of a class and which is used to initialise the data member of the class. Source:

Answered by: Neha Garg | Date: 8/31/2009 | Contact Neha Garg Contact Neha Garg

class have no memory but object have memory Source:

Answered by: anant khandelwal | Date: 10/12/2009 | Contact anant khandelwal Contact anant khandelwal

Class:-Class is a keyword to create a user define datatype.Class can contain variables and methods.

Object:-The variable of the user define datatype is called object.

Answered by: Vijay Kumar | Date: 12/11/2009 | Contact Vijay Kumar Contact Vijay Kumar

object is ainstance of a class it has contain attributes,behavior etc.,

A class is a collection of objects and methods

A class is definition

a good example of object and class is

CAR is a class
we have diferent types of cars like MARUTHI cars,Santro,Escort

here car is the class
and maruthi car is the object. Source:

Answered by: rajeshkumarreddychalla | Date: 5/18/2010 | Contact rajeshkumarreddychalla Contact rajeshkumarreddychalla

class is a collection of members events constructors and destructors
structurs enumms abstruct class extra
example is state
object is instance of class
ex is house Source:

Answered by: kumari | Date: 5/29/2010 | Contact kumari Contact kumari

an object is nothing but a real time entity....
class is collection of member functions and methods..... Source:

Answered by: Gouse | Date: 6/1/2010 | Contact Gouse Contact Gouse

class is a user defind datatype,i.e cimbination of datafunction and datamembers. Source:

Answered by: yogesh.B | Date: 6/7/2010 | Contact yogesh.B Contact yogesh.B

Class does not exit physically.When we create a class,it don't have memory.Object is physical existing thing.It can used to allocate memory to the class and it used to call the members of class. Source:

Answered by: Lakshmi Narayana | Date: 6/21/2010 | Contact Lakshmi Narayana Contact Lakshmi Narayana

object: object is real time entity for instance of class.
class: collections of objects Source:

Answered by: tejaswini | Date: 8/2/2010 | Contact tejaswini Contact tejaswini

Object is the real time entity and the class is the collection of data members and member functions

Nicku Source:

Answered by: nicku | Date: 8/11/2010 | Contact nicku Contact nicku

If you have the better answer, then send it to us. We will display your answer after the approval

Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.

Post your answer here

Inform me about updated answers to this question.
Related Questions
View Answer
Define abstraction,encapsulation,inheritance:with example.
View Answer
Define abstraction,encapsulation,inheritance:with example.
View Answer
What is mean "Death of Diamod"?
View Answer
what is the main difference between delegate and an event in c#?
View Answer
How to use HASH TABLE,ARRAYLIST in c# explain with example?
View Answer
Assemblies are of the following types:

View Answer
What is the difference between shadow and override

View Answer
What is the top .NET class that everything is derived from?

View Answer
C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?

View Answer
When you inherit a protected class-level variable?Who is it available to?

View Answer
Does C# support multiple inheritance?

View Answer

How do you inherit from a class in C#?

View Answer

Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

View All C# Interview Questions & Answers - Exam Mode / Learning Mode

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.908203 Seconds