I\'m trying to implement a Factory pattern in Java. I have a class called Shape which Circle and Triangle extends. The problem is that Shape constructor gets only 2 parameters w
All of your implementations must take the same number of arguments, you have three options: