What is an Object?
An object is an instance of a type - Everything in python is an option!
What are the advantages of Object Oriented Programming?
What do you have to do to create a class?
What do you have to do to use the class?
2. Do operations on these instances
What do you use the self for?
To refer to some instance while defining the class i.e. class Coordinate (object): (self.x - self.y) ** 2
What is the main difference between a class and one of its objects?
A class defines data and methods across all instances vs. An instance has the structure of the class
What are data attributes within a class?
They represent your object with data
i.e. for an animal: age, name
for a coordinate: x and y values
What are procedural attributes within a class?
Methods (Behaviour/operations)
What are getter and setter methods used for?
Should be used outside the class to access data attributes
What is the dot notation used for with objects?
the dot is used to access attributes(data and methods)
but use primarily for methods and use getters and setters for data attributes