Describe what an Interface is and how it?s different from a
Class.
Answer Posted / nick martin
"interface is collection of abstract method."
Ummm No... Perhaps you are thinking of an abstract class and
methods within.
An interface defines a class. A class that implements an
interface must implement all of the methods and properties
within the interface. Interfaces are commonly thought of as
a "Contract" as they guarantee that implementing class will
contain those methods and properties.
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What is the advantage of oop over procedural language?
Advantage and disadvantage of routing in telecom sector
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is purpose of inheritance?
Whats oop mean?
Can we define a class within the interface?
What is class in oop with example?
how to get the oracle certification? send me the answer
Why is abstraction needed?
Why is polymorphism used?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is destructor in oop?
hi all..i want to know oops concepts clearly can any1 explain??
What is the difference between a constructor and a destructor?
How do you answer polymorphism?