Object oriented programming has a few core concepts, which if you know them, will help you out tremendously!

The first is the concept of classes and objects, which is strangely overdone on the internet (and books for that matter).

The concept is extremely simple and maybe people over explain it. That’s probably the root of the confusion but I’m here to save the day!

Ready for it? Here you go:

  • A Class is a blueprint.
  • An Object is the thing made from that blueprint.

Yeah. Really. It’s that simple.

That means that there is generally one class but there can be many, many objects (as many as you like!).

In programming terms a class might look like this (Swift language here but could be any language):

So a class can have properties, functions and anything else common to whatever language you’re using (generally speaking).

Now for a bunch of objects made from that class:

Yeah, 3 objects all made from the same blueprint. Now I know that Ferrari, Ford and Nissan aren’t the same (Nissan’s better) but you get my point.

One class is used to create multiple objects.

Does that clear it up for you? If not, then please do comment!


What are Classes and Objects – Object Oriented Programming

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share This

Exhausted by your 9 - 5?

Would you prefer to work for half the time and earn double? The first step to your freedom is understanding how apps make money. Simply enter your email below and I will send you a free PDF describing the process.

If you're serious about improving your life then do not miss this opportunity.

You have subscribed! Please check your email to confirm this subscription and to receive your item!