What is the difference between and interface and an
abstract class ?
Answer Posted / sathish kumar.t
ABSTRACT CLASS Interface
It consist of Static It consist of non- static member
member variables variables
It consist of non-abstract It consist of only abstract
and abstract methods methods
it consist of private and It consist of public classes
protected classes
It uses the keyword Extends uses the keyword Inplements
If subclass extends the If the subclass implements
abstact class, cannot extend interface, can implement any
any other class number of interfaces
Is This Answer Correct ? | 19 Yes | 23 No |
Post New Answer View All Answers
What is a class in oop?
Why is polymorphism needed?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What do you mean by overloading?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is object in oop with example?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is encapsulation in oop?
What is the benefit of oop?
What is a class and object?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is basic concept of oop?
What is abstraction in oops?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.