I want to have a Class object, but I want to force whatever class it represents to extend class A and also class B. I can do
A simple way for this problem is inheritance.
public class A { // some codes } public class B extends A { }