We're going to walk through a simple program to learn about the principles of OOP.
Each Repl.it below contains the functionally same program, but written differently each time.
When you click run, the program will prompt you for an animal to speak to.
For example, if you type "dogsay woof woof" a dog will appear with a speech bubble above its head saying "woof woof"
You'll be adding an animal of your own, pick something cute!
"Simply stated, object-oriented design is a programming technique that focuses on the data-objects and on the interfaces to those objects."
"Each object has a specific functionality, exposed to its users, and a hidden implementation."
"The fact that an object variable can refer to multiple actual types"
"The "is-a" rule states that every object of the subclass is an object of the superclass."
"You can create new classes that are built on existing classes. When you inherit from an existing class, you reuse its methods , and you can add new methods and fields to adapt your new class to new situations"
"Combining data and behavior in one package and hiding the implementation details from the users of the object"
"The concept of exposing only the required essential characteristics and behavior with respect to a context."