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.
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
Class Company
{
methods
variables
}
Class Employee
{
methods
variables
}
Login to rate this answer.