Ask Question
26 February, 18:14

EX 7.13. Create an interface called Visible that includes twomethods: makeVisible and makelnvisible. Both methods should takeno parameters and should return a Boolean result. Describe how aclass might implement this interface. public interface Visible{public: boolean makeVisibleO; public boolean makelnvisibleO;

+3
Answers (1)
  1. 26 February, 18:24
    0
    public class Icon implements Visible

    {

    / / instance variable

    //Constructor variable

    Public Icon ()

    {

    //implementation

    }

    //two methods will be implemented make visible and makeInvisible with the signage and return type

    //displayed below

    / public boolean makeVisible ()

    {

    //the implementation is registered here

    public boolean makeInvisible ()

    { / /implemetation will be here

    }

    //other methods are of this type

    Explanation:

    Create an interface called Visible that includes twomethods: makeVisible and makelnvisible. Both methods should takeno parameters and should return a Boolean result. Describe how aclass might implement this interface. public interface Visible{public: boolean makeVisibleO; public boolean makelnvisibleO;

    The above can be executed as a jа vascript

    public class Icon implements Visible

    {

    / / instance variable

    //Constructor variable

    Public Icon ()

    {

    //implementation

    }

    //two methods will be implemented make visible and makeInvisible with the signage and return type

    //displayed below

    / public boolean makeVisible ()

    {

    //the implementation is registered here

    public boolean makeInvisible ()

    { / /implemetation will be here

    }

    //other methods are of this type
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “EX 7.13. Create an interface called Visible that includes twomethods: makeVisible and makelnvisible. Both methods should takeno parameters ...” in 📗 Business if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers