+ 1
What is difference between Class and object ?
Can anybody help me out.
1 Answer
+ 3
class is a blueprint while object is acquired from class.
In a noob term, lets say for example.. your surname is a class while your name is an object.
example
Gates - Surname
Bill - Firstname
Gates is a class, Bill is an Object... Bill was gotten from Gates family. its now left for you to give your object (Bill) its attributes and functions.
Gates Bill; - Created an object called Bill.
Bill.height = 170;
Bill.weight = 65
Bill.eyes = 2;
Gates Melinda; - Created an object called Melinda
Melinda.height = 155;
Melinda.weight = 85;
Melinda.eyes = 2.
you can define functions too on your objects... Yoineed to read more on classes and objects . i just explained the basics.