Design an interface namedcolorable with a public void


Design an interface namedColorable with a public void method namedhowToColor(). Every class of acolorable object must implement theColorable interface. Design a class named Square which implementsColorable. The class should contain an integer instance variable named side, a constructor which takes an integer parameter to set the side variable, a mutator andaccessor for the side variable, and an implementation of thehowToColor method which displays the message "Color all four sides". Your submission can be contained in a single file if you do not declare theColorable interface as public (ie. do not specify any visibility modifier for the interface).

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Design an interface namedcolorable with a public void
Reference No:- TGS01552011

Expected delivery within 24 Hours