GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  OOPS

 Print  |  
Question:  Classes and Objects

Answer: What is the relationship Between Classes and Objects?


September 09, 2009 15:22:27 #3
 Mrinal Srivastava   Member Since: September 2009    Total Comments: 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. 
     

 

Back To Question