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
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!!!)
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is the difference between a constructor and a destructor?
What is abstraction in oops?
Is react oop?
write knight tour problem which is present in datastructure
Write a program to reverse a string using recursive function?
What is polymorphism programming?
How do you answer polymorphism?
What is the importance of oop?
What are the benefits of polymorphism?
How do you define a class in oop?
Why multiple inheritance is not allowed?
Why do we use polymorphism in oops?
Prepare me a program for the animation of train