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 inheritance in oop?
Why interface is used?
What is a class and object?
What is class in oop with example?
What are the benefits of interface?
What is abstraction in oops with example?
What is the real time example of inheritance?
Can we define a class within the interface?
What is difference between pop and oop?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is new keyword in oops?
Which language is pure oop?
What is pointer in oop?
Why do we need polymorphism in c#?
What is abstraction with example?