
Do you need to explain Object Oriented Programming (OOP)?
Object–oriented 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
Leave a Reply