NOTE: Learners are introduced to the concept of object-oriented programming (OOP) in the world of Bug World. To learn more about OOP and other concepts, check out the full learning guide for Bug World --> click HERE
Definition: A style of programming useful for structuring code into logical, self contained objects, similar to how the world works.
Example: OOP mirrors how the world works.
OOP is an especially useful way of structuring code for large programs, like games! When playing a game, we can manipulate and control specific objects, like a character, without changing everything else. In Bug World, Learners will put this to the test and use Object-Oriented Programming concepts to modify games.
Application: Object-oriented programming takes something very complicated and simplifies it by breaking it down. Pieces of code are categorized into logical, self-contained ‘objects’ that are each responsible for their own defined set of tasks in a program.
Everything in Kodable’s Bug World is Object-Oriented Programming! In the practice levels, learners utilize OOP concepts like classes, subclasses, properties, and functions, to individually modify specific objects in the game.
Why Use Object-Oriented Programming: Object Oriented Programming makes it easier to control the program by being able to compartmentalize- you can manipulate individual objects without changing everything, adding layers of complexity to the overall program and allows you to create exciting, dynamic programs with a lot of different, moving parts.