Hello, I'm configuring php api endpoints for crud operations with a React.JS frontend. I would like help on how to implement the logic with OOP, an abstract class for the main product logic. I have three product types, Book, Furniture, and DVD. All products have a name, sku (primary key), and price. Moreover, each product type has a product-specific value. A book has a weight property, furniture has dimensions (length, width, and height) and a DVD has a size property.
How can I proceed to use polymorphism to achieve this, so that i can avoid using conditional statements to detect product type.