Ask Question
8 September, 15:45

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;

+1
Answers (1)
  1. 8 September, 17:12
    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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers