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 Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Why multiple inheritance is not allowed?
What does and I oop mean in text?
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!!!)
Is html an oop?
c++ program to swap the objects of two different classes
What are the 4 main oop principles?
How long to learn object oriented programming?
can we make game by using c
Can we define a class within the interface?
What is oops in simple words?
What is difference between pop and oop?
Is enum a class?
What is destructor oops?
What is destructor give example?