Skip to main content
edited title
Link
Michael K
  • 15.7k
  • 10
  • 65
  • 95

Absract Abstract classes in package structure

edited body
Source Link
Michael K
  • 15.7k
  • 10
  • 65
  • 95

I have an abstract class that will have many implementors. There are, of course, many places to put abstract classes in a Java package structure. Should the abstract class be in the same package as the implementors, or should it be in an "abstract package" package, or somewhere else? PelasePlease explain why you would place it there - I'm looking for design discussion, not just what I should do in this particular case.

I have an abstract class that will have many implementors. There are, of course, many places to put abstract classes in a Java package structure. Should the abstract class be in the same package as the implementors, or should it be in an "abstract package" package, or somewhere else? Pelase explain why you would place it there - I'm looking for design discussion, not just what I should do in this particular case.

I have an abstract class that will have many implementors. There are, of course, many places to put abstract classes in a Java package structure. Should the abstract class be in the same package as the implementors, or should it be in an "abstract package" package, or somewhere else? Please explain why you would place it there - I'm looking for design discussion, not just what I should do in this particular case.

Source Link
Michael K
  • 15.7k
  • 10
  • 65
  • 95

Absract classes in package structure

I have an abstract class that will have many implementors. There are, of course, many places to put abstract classes in a Java package structure. Should the abstract class be in the same package as the implementors, or should it be in an "abstract package" package, or somewhere else? Pelase explain why you would place it there - I'm looking for design discussion, not just what I should do in this particular case.