+ 1

What is the different between class and object.?

give details....

18th Nov 2016, 3:52 AM
Mitu Ahmed
Mitu Ahmed - avatar
3 Answers
+ 4
A class is an object definition, with its attributes and methods. An object is the instance of the class. In other words, a class is like a template that especifies the data type of the object; the object is the realization of the class.
18th Nov 2016, 4:38 AM
Isaac
Isaac - avatar
+ 3
A class is an implantation of object and a object is an instance of a class..
18th Nov 2016, 4:38 AM
Saif Maruf
Saif Maruf - avatar
+ 3
An analogy: think of a class as a rubber stamp, and an object being the printing on a sheet of paper every time you use the rubber stamp.
18th Nov 2016, 5:53 AM
Álvaro