Skip to main content

All Questions

Tagged with
-1 votes
3 answers
514 views

Constructor from interface with minimal repetition

Preface In an application that is separated by layers or distributed by services it is common to have classes that are very closely related data-wise, but which we wish to have loosely coupled. My ...
Guran's user avatar
  • 545
7 votes
4 answers
2k views

Can I make my constructors less repetitive?

I'm extending a class with 10 different constructors. The new subclass, SpecialImage, is used like this: SpecialImage specialImage = new SpecialImage(..); // Leverage the Rotate() method of ...
kdbanman's user avatar
  • 1,447