This question is mainly about Java inheritance. I am developing a program that has 2 windows, both of which will be developed in separate classes that will extend JPanel. The first class is "FileSub1" and the second is "FileSub2".
There are many methods that are common to these two classes, so I would like to create a class called “Files” and make it “FileSub1” and “FileSub2” its subclasses. But Java does not support multiple inheritance! What can i do here?
source
share