Interviews3 answers
Explain the concept of Class and Object in OOP?
3 Answers
A class is a group of objects that has common properties.
Object is an instance of a class.
Sanjay SabariyaPosted Jun 3, 2015, 3:34 AM EDT
Class is a collection of method,properties,variables and object is a physical representation of a class or we can say that object is a medium for accessing the element of a class
Pankaj Kumar ChoudharyPosted Mar 31, 2015, 6:06 AM EDT
class is a collection of variables and methods, instance of objects with implementation of methods
object is the instance of objects
using class name can create the object
masthan pPosted Dec 2, 2012, 1:51 AM EST

