Answer:
Explanation:
This is unsolvable if you have no variable substitutes
package mypackage; // Whatever package this should be in.
public abstract class DesktopComponent {
private String type;
// Alternatively you may want a final variable.
// private final String type;
public DesktopComponent(String type)
{
this.type = type;
}
abstract void onClick();
}