ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Software Design  >>  OOAD
 
 


 

 
 Design Patterns interview questions  Design Patterns Interview Questions
 UML interview questions  UML Interview Questions
 OOAD interview questions  OOAD Interview Questions
 Software Design Tools interview questions  Software Design Tools Interview Questions
 Requirements Management interview questions  Requirements Management Interview Questions
 Project Planning interview questions  Project Planning Interview Questions
 Project Management interview questions  Project Management Interview Questions
 Technical Writer interview questions  Technical Writer Interview Questions
 Software Design AllOther interview questions  Software Design AllOther Interview Questions
Question
Is class an Object? Is object a class?
 Question Submitted By :: Yogveer Singh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Is class an Object? Is object a class?
Answer
# 1
Class is an object.
But an object is not a class.
 
Is This Answer Correct ?    1 Yes 2 No
Anirban
 
  Re: Is class an Object? Is object a class?
Answer
# 2
object is an instance of a class or in other words object 
is a snapshot(blueprint)of a perticuler class.
class is real world object.
 
Is This Answer Correct ?    1 Yes 1 No
Kaushi
 
 
 
  Re: Is class an Object? Is object a class?
Answer
# 3
Class is a user defined data type whereas Object can be 
veiwed as a variable of class type
For example fruit is a class & mango,apple are different 
objects of class fruit.
Class can be a person whereas objects can be any existing 
person like Ram ,Shayam,Rahul etc
 
Is This Answer Correct ?    0 Yes 1 No
Shambhu Gupta
 
  Re: Is class an Object? Is object a class?
Answer
# 4
a class is a class which is an object but class is not an 
object
 
Is This Answer Correct ?    1 Yes 2 No
Shashi
 
  Re: Is class an Object? Is object a class?
Answer
# 5
Yes, class is an object but an object is not a class.
We can compare class with a factory and object with product.
A factory can be a product of another factory; but a 
product can not be a factory.
 
Is This Answer Correct ?    0 Yes 1 No
Reza
 
  Re: Is class an Object? Is object a class?
Answer
# 6
A class is a generalized template from which object
is created based on its various instances,therefore
we can consider a class as an object while vice-versa 
is not possible.
 
Is This Answer Correct ?    3 Yes 0 No
Kumar Rohit
 
  Re: Is class an Object? Is object a class?
Answer
# 7
A class is neither an object nor an object is a class.
A class is like a blue print for an object.
An object is an instance of a class.

Some people have given the right examples above and some 
more goes here:
You can consider a blue print for your house is a class. 
You cannot stay in blue print :).
The building built based on the blue print is called an 
object. You can stay in it.

Class should be treated like a "data type" and an object 
like a instance of that datatype.
for e.g., int i; you can considet int as a class and i as 
an instance of an object.
 
Is This Answer Correct ?    0 Yes 0 No
Murthy
 
  Re: Is class an Object? Is object a class?
Answer
# 8
YES class is an object whereas an object is an instance of 
a class
 
Is This Answer Correct ?    0 Yes 0 No
Anu
 
  Re: Is class an Object? Is object a class?
Answer
# 9
Class is not an object. An object is an entity that is 
allocated memory during runtime to do certain operation 
whereas Class is just a skeleton or representation of the 
object. We say design a class and not create a class. We 
can only design a class ( attributes and behaviour ).
In brief we can say class is a Type of an object.
 
Is This Answer Correct ?    0 Yes 0 No
Vasir
 
  Re: Is class an Object? Is object a class?
Answer
# 10
Going by the definition ("object is an instance of a class") -  it is clear that object IS A class type (take off "an instance of"). However, the other way round is against the correctness of definition.
 
Is This Answer Correct ?    0 Yes 0 No
Subrata
 

 
 
 
Other OOAD Interview Questions
 
  Question Asked @ Answers
 
What are the Design Patterns you know. Protech1
Explian following terms: Constraint Rules, Design by contract. Protech1
How do you represent static members and abstract classes in Class Diagram? Protech1
Is class an Object? Is object a class? Protech3
Can link and Association applied interchangeably?  2
Is class an Object? Is object a class?  10
Difference between Composition and Aggregation Protech2
Why should project managers complete hard problems first in an OOSAD project?  2
What is guard condition? Syntel3
What are the four phases of the Unified Process ? Protech3
What is SRD(System Requirement document), FSD (Functional Specification Document), RSD (Requiremnet specific document)? If these are different document wat are there contents? HP1
Every object has : state, behavior and identity - explain Protech2
USECASE is an implementation independent notation. How will the designer give the implementation details of a particular USECASE to the programmer?  2
Why is planning too much up front a mistake in an OOSAD project? Infosys3
Explain Class Diagram in Detail. Protech2
Difference: Activity Diagram and Sequence Diagram Protech2
What is association? Protech2
What do you meant by static and dynamic modeling?  3
What is Polymorphism? Protech3
What do you meant by "SBI" of an object?  2
 
For more OOAD Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com