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 coupling in oops?

606


how to get the oracle certification? send me the answer

1676


What is object in oops?

621


What does I oop mean?

623


Why is oop better than procedural?

611






if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2766


How do you achieve runtime polymorphism?

575


Plese get me a perfect C++ program for railway/airway reservation with all details.

3433


What is byval and byref? What are differences between them?

1697


What is the difference between inheritance and polymorphism?

599


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1417


what is difference between class template and template class?

2165


What is persistence in oop?

677


What is polymorphism oop?

631


What is the oops and benefits of oops programming?

561