Ask Question
26 December, 06:12

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

+1
Answers (1)
  1. 26 December, 06:26
    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?
Find 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 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