+ 2
Explantion of OOP in simple language
Classes and objects in simple language
3 odpowiedzi
+ 2
Class is a template,filled with attributes and variables.
Object is an "object" created from that template
The most common example is Class Dog,lets say the attributes are name,age,and color
You can create an object called "MyDog", and use that template or that Class to specify what the name age and color of your dog.
And you can reuse this template to make another object called "Myfriend'sdog" and specify what name age and color your friends dog has.
+ 2
In simple language
Class is a combination of properties and methods, and objects are instances of the class
+ 2
Thanks.