OOP: How do you explain Object Oriented Programming?

Book Selling as a sample for Object-oriented programming (OOP)
Photo by Annie Spratt on Unsplash

Do you need to explain Object Oriented Programming (OOP)?

Objectoriented programming (OOP) is a programming organized around Objects (models) rather than Functions (actions). 

Bookshop Sample

Bookshop goal is to Sell Books.

As a book seller, you can concentrate on Selling (actions) or Books (objects).

Objects hold Information.

Actions are functions that let objects interact.

Questions to consider:

What information would the Book object hold?

Is collecting information about a book an action?

What comes first an object that holds information or an action for collecting object information?

What would happen if you collect all the information about your books, but don’t list them for sale?

How concentrating on objects (books) would help you be a better book seller?

How concentrating on actions (listing, selling, analyzing your sales) would help you be a better book seller?

To learn much more:

Categories: Books, Object Oriented Programming (OOP), Software Developer

Tags: , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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

%d bloggers like this: