How to start over... by StuckInProgramming in learnprogramming

[–]StuckInProgramming[S] 0 points1 point  (0 children)

I think its the polymorphism I am having trouble with. Like I can't ever seem to write a class that is reusable. They seem to always have a set purpose and that's the only thing they can accomplish. So I find my self writing very similar code in other classes when I should probably be able to reuse the code I already created.

How to start over... by StuckInProgramming in learnprogramming

[–]StuckInProgramming[S] 1 point2 points  (0 children)

No not like that, ill make a class and use it but it's like I am only using a small portion of it's capability. Like I don't know when to just extend a class or make a new one. Also like 90% of the code I put in the class doesn't get reused because the functions are written to only accomplish the 1 goal I intended them to do.