Ask Question
16 January, 05:45

An interface is a class that contains only the method headings and each method heading is terminated with a semicolon. True False

+2
Answers (1)
  1. 16 January, 07:11
    0
    False

    Explanation:

    Interfaces are similar to classes in Java, but they are not a type of class. A class defines the attributes and behaviours of objects, while interface contains the methods that shows the behaviours to be implemented by a class.

    A method is one or more group of statements, it does not need to end with a semicolon. Methods in interfaces are abstract and for a class to contain these abstract method, it must be defined in the class.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “An interface is a class that contains only the method headings and each method heading is terminated with a semicolon. True False ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers