Describe what an Interface is and how it?s different from a
Class.
Answer Posted / seamus barrett
An interface represents a contract between a class and its clients (the classes and functionality that consume the class). A class that implements an interface makes available to it's clients a collection of methods and properties as defined by the interface. As a class evolves (as the code changes) the contract between class and its client remains intact so long as the interface is unchanged. This allows a class to grow without requiring its clients to be rebuilt.
Difference? A class can be instantiated into an object that provides functionality to the instantiating function while an interface cannot be instantiated.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is encapsulation selenium?
What is cohesion in oop?
What is abstraction example?
What is oops in simple words?
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’.
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is difference between pop and oop?
Why is there no multiple inheritance?
what's the basic's in dot net
What makes a language oop?
Can destructor be overloaded?
What is inheritance in simple words?
What are main features of oop?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is overriding in oop?