provide the definition of an abstract class named DesktopComponent that contains the following:-a void (abstract) method, onClicked, that accepts no parameters and is to be supplied by a subclass.-a (private) string named type, describing the sort of Desktop component (e.g. window, icon, taskbar, etc).-a constructor accepting a string that is used to initialize the type instance variable

LANGUAGE: JAVA

CHALLENGE:

provide the definition of an abstract class named DesktopComponent that contains the following:-a void (abstract) method, onClicked, that accepts no parameters and is to be supplied by a subclass.-a (private) string named type, describing the sort of Desktop component (e.g. window, icon, taskbar, etc).-a constructor accepting a string that is used to initialize the type instance variable

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,