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


Please Help Members By Posting Answers For Below Questions

What is the advantage of oop over procedural language?

617


Advantage and disadvantage of routing in telecom sector

776


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!!!)

1631


What is purpose of inheritance?

635


Whats oop mean?

582






Can we define a class within the interface?

543


What is class in oop with example?

608


how to get the oracle certification? send me the answer

1654


Why is abstraction needed?

556


Why is polymorphism used?

573


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?

1625


What is destructor in oop?

615


hi all..i want to know oops concepts clearly can any1 explain??

1671


What is the difference between a constructor and a destructor?

600


How do you answer polymorphism?

569