GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 257 of 258    Print  
Classes and Objects
What is the relationship Between Classes and Objects?


  
Total Answers and Comments: 3 Last Update: September 08, 2009     Asked by: yamxxx 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 22, 2009 14:35:02   #1  
Suki Singh Member Since: June 2009   Contribution: 1    

RE: Classes and Objects
Class consists of Objects.
Objects are interfaces of Classes.

 
Is this answer useful? Yes | No
July 20, 2009 19:44:13   #2  
PNVRKPrasad Member Since: July 2009   Contribution: 4    

RE: Classes and Objects
Class: Programmer puts the definition of code into a class which we can treat as a plastic mould. Class is defined at design time. A class gives the programmatic logic.
Object: Plastic products are created using a mould; objects are instantiated at run time by using the Class definition. An object is a copy of a class which will be filled with data at run time. An object can be created for handling each user request or for a user or there can be a singleton class which will have only one instance (object) that serves all the requests.

 
Is this answer useful? Yes | No
September 08, 2009 15:22:27   #3  
Mrinal Srivastava Member Since: September 2009   Contribution: 1    

Classes and Objects
The relationship between Classes and Objects can be defined in the easy way as The relationship between Maruti and a particular Maruti 800 DL 12 H 2343 implies when we talk about Maruti it gives us sense that we are talking about car but a numbered car can explain about which car we are talking about. the common thing is that both have the same functionality but from Maruti we can't recognize anything uniquely but Maruti 800 DL 12 H 2343 gives us a unique object. In the same way we can considered Class as a bundle of Data Functions and Members which holds the definitions about how its class's object will work. and object performs the tasks by showing or following there behavior which is stated in the class.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape