Extending Objects
So far, I have seen that object-oriented programming is a powerful way to encapsulate data into new types. I created a Product class, which has a representation of all the "inherent" properties I find in a product being sold in my fictional boating supply web applicationits name, description, PID, price, and so on.