java - Create subclass just to convert between different subclasses -


i found had never think before when going through code base of new company joined. happens: have base class represents image several abstract methods convert between different image types. different image types subclasses of base image class. subclasses responsible converting between different images derived classes.

my question is supposed design? if not alternatives can have?

thanks lot.

if designed scenario following.. ( n.b not designer, sharing concepts)

  1. a base class image abstract methods wil represent behavior not actions convert
  2. subclasses implementing abstract classes define behaviors
  3. other utility class have methods convert between different images.

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -