GeekInterview.com
Series: Subject: Topic:
Question: 92 of 1118

how class & objects related real time

Asked by: Interview Candidate | Asked on: Sep 9th, 2007
Showing Answers 1 - 4 of 4 Answers
ramesh.sukka

Answered On : Nov 17th, 2007

View all answers by ramesh.sukka

Class is a template (combination of features and corresponding functionalities )of any real world entity and Object is instance of class.

Example: consider human is class and human will have properties called color, name , canWalk(),canEat()

Object is instance of class, assume that is instance of name Rahul, it will have following values color=whicte, name=rahul,canWalk()=No,canEat()=yes

  
Login to rate this answer.
sampra

Answered On : Feb 13th, 2008

View all answers by sampra

Telivison is a class Onida TV is an object

  
Login to rate this answer.
sugumar

Answered On : Jun 18th, 2012

car is a class and car key is a object

  
Login to rate this answer.
sivasankar reddy

Answered On : Jul 3rd, 2012

Company ,Employee is a class. XYZ company ,sankar employee is obiect.

Code
  1. Class Company
  2. {
  3. methods
  4. variables
  5. }
  6. Class Employee
  7.  
  8. {
  9. methods
  10. variables
  11. }

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.