Recap Week 1
This week we looked at what an object is and how we can use objects in a program. We know that objects come from a class, which is like a blueprint, and that we can customise the attributes of an object as well as call methods on it.
We know that each object starts with the same attributes, but since each object is a separate instance of a class, we can customise objects individually.
Next week we will learn how to write our own class in order to create custom objects. We will begin creating an adventure game, and write our own Item class.
Attribute – a named piece of data stored within an object
Class – a blueprint for making an object
Instance – a specific example of an object
Method – a function called upon an object allowing interaction with that object
Object – groups together data and functions to model something in code. Examples could include a physical item such as an LED, or a digital unit such as a bank account or an enemy in a video game
Object-oriented programming – a different style of programming
Getter – a method whose purpose it is to get a value within an object
Setter – a method whose purpose it is to set a value within an object