I have seen a lot of posts about objects, classes and instances and have become a little confused. I need clarification about the following example.
Say I create a game, it has three menus:
- main menu,
- level menu
- option menu.
Now say I define a class called GameMenu since all these menus will have titles and instructions and buttons etc... Then I instantiate my menus using this class for example:
MainMenu = GameMenu();
LevelMenu = GameMenu();
OptionMenu = GameMenu();
And I pass the parameters for the titles and button labels and such inside the brackets - In the context of this example am I right in saying that my class is GameMenu, my objects are COLLECTIVELY MainMenu, LevelMenu and OptionMenu, and my instances are one specific object so MainMenu is an instance, OptionMenu is an instance and LevelMenu is an instance.
That is what I was taught, but that means objects and instances are the exact same things in which case the terms object and instance are synonyms for each other which is not what I have read?
Long story short, are object and instance terms synonyms?