I am trying to implement OOP in making an admin panel for my ecommerce website.
I am fairly new to OOP. I need few suggestions before starting my project.
I have:
- Brands pages (Add, View) where admin can add brands (Companies) or view them in a grid;
- categories / Subcategories;
- products page (CRUD) with image upload;
- customers;
- orders;
- payments;
Now the problem i am facing to jump in is that how to do it in OOP. For example:
- Should i make seperate classes for every identity and add CRUD methods for every identity?
- should i make a generic CRUD class and inherit it in every identity?