I have read many articles on class development (I use php), with tags: "scalable, reliable, supported and extensible."
But as a beginner, I created classes that, in my opinion, are "simply abstracted." This means that I just split the heap or duplicate codes and put them in a class and provided methods for accessing common tasks.
The fact is, I can’t find a way to make my class extensible (I know the concept of abstract classes, etc., I even use them, but just to determine the methods that my other classes will follow). The thing is, I always find that I am editing the main class simply by adding functions. .
Any tips on extending my class? (I searched for this and everything that pops up, explains abstract classes, interfaces, and OOP, doesn't discuss pointers or some hints for creating extensible classes).
Oh, by the way, it’s easy for me, I started the “actual” oop programming 9 months ago (the university I was from started with OOP theory, but they worked as a PROCEDURE because it’s faster, and it corresponds to the overdue terms of the project, and this went on 4 years until I finished).
source
share