Using java abstract class
- by user969131
In my UI project, I have few screens that share the same header style only the text is specific to the screens. What will be a good way to implement this?
Have the super class create all the header component and open the components to the sub class, the sub class will access to component's setText method to update the text?
or
Have abstract method in super class to create the components, sub class will implement these methods to create the component.
Hope it make sense..