Write a program using an object
Start to create your object-oriented text-based adventure game
Extend other people’s classes
Create an enemy in the room
Recap Week 3
Extending your knowledge of OOP
Finish your game
End of the course
My biggest criticism of object-oriented programming (OOP) is the language used to describe the principles, as the terms are difficult to remember and understand.
In this step you will review the terms and join a conversation about the concept you found most difficult to understand, so that you can provide an alternative description.
You have learnt the following terms during this course:
Object: the data and functions required to model something in code
Class: a blueprint for making an object
Instance: a specific example of an object
Attribute: a named piece of data stored within an object
Method: a function which performs a task on an object i.e. tells the object what to do
Inheritance: a class is able to use all of the attributes and methods from a superclass
Polymorphism: when a method behaves differently depending on which object it belongs too
Aggregation: when an object contains an instance of another object
I have provided some brief descriptions for each. I am sure you can do better, though.
Pick a term from the list above and comment on how you would describe it to someone else.