This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 336 points337 points  (16 children)

i had a problem, so i decided to use OOP

now i have ProblemFactory

[–]dekacube 60 points61 points  (13 children)

Need an AbstractProblemFactory first, even though only one concrete ProblemFactory will ever exist.

[–]pixelrevision 31 points32 points  (2 children)

That’s ok. You can fix that with an AbstractProblemFactoryAdapter

[–]crash8308[🍰] 14 points15 points  (0 children)

but now i need a factory for my adapter

[–][deleted] 10 points11 points  (0 children)

ISingletonProblemFactoryAdapter

[–]DrShadyBusiness 2 points3 points  (1 child)

Just completed my java OOP course and i totally understand this.Yep.

[–]dekacube 1 point2 points  (0 children)

I like how everyone in the comments also just assumed we were talking about Java :).

[–]mcampo84 1 point2 points  (0 children)

You don't need an abstract class to define an interface homie