+ 2

Explantion of OOP in simple language

Classes and objects in simple language

3rd Sep 2021, 4:13 AM
LONMemer
LONMemer - avatar
3 Réponses
+ 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.
3rd Sep 2021, 4:19 AM
raynard
raynard - avatar
+ 2
In simple language Class is a combination of properties and methods, and objects are instances of the class
3rd Sep 2021, 4:58 AM
Tim
Tim - avatar
+ 2
Thanks.
3rd Sep 2021, 5:18 AM
LONMemer
LONMemer - avatar