Just starting out with OOP in PHP and in general. From what I have been reading so far the two seem to be synonyms. Is this the case, and if not, practically speaking when people refer to objects and classes do they generally use the terms interchangeably?
Share
Typically one would refer to an object as an instance of a class.
So you have some class
Employee.And you declare an instance of it like:
Employeeis a class.$assistantis an object, that is an instance of the Employee class.So to answer your question – a class is not an object. You create an object when you instantiate a class.