OOP building blocks

Class
A blueprint of an object: its properties, behavior and how it interacts with the exterior world.
Attributes & methods
The attributes are the properties of an object while the methods represents its dynamic behavior inside of your program. These attributes and methods define how the object should be accessed, its internal behavior and how it interacts other objects
Objects
An instance of a class. (the class is the type definition and the object is the variable) => all instances of a class share the same fields but have distinct data inside.
In addition to its state (properties) and behavior (methods) an object has an identity which distincts it from other objects (alias/ memory address ...)
Comments