Object Oriented Programming: Classes and instances BEHIND THE SCENES!
Object Oriented Programming: Classes and Instances Hi! Welcome to this section! First of all, congratulations! You’re already halfway through the course. You should be very proud of yourself :-) In this section we are going to start talking a little bit about classes, what they are and how they can represent real objects. You will even learn that YOU are an example of Object Oriented Programming (OOP) and you didn’t even know it! So… Let’s get started! Classes are like blueprints, we use them to represent an abstract notion or idea of how we describe real world objects according to certain criteria. For example, House is the notion we have of a structure where people live that has bedrooms, bathrooms, floors, roofs, ceilings, and so on… they share some characteristics, but they don’t necessarily have to be exactly the same for us to consider them houses. This is what we would represent as a CLASS, the abstract notion of a house. Now, if we refer to a ...