Answer Posted / anu mehra
abstract classes contain
1)abstract as well as non abstract method
2) to inherit we use extends keyword
Interface
1) all methods are abstract ,public and static
2) all variables are public , static and final
3) to inherit we use implements keyword
4) interface can extend another interface
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How is class defined?
What is the main purpose of inheritance law?
write string class as your own class in java without using any built-in function
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is a function in oop?
What is polymorphism give a real life example?
Can a varargs method be overloaded?
Write a program to sort the number with different sorts in one program ??
What is destructor give example?
What is protected in oop?
What is abstraction in oop with example?
What is oops in simple words?
How to hide the base class functionality in Inheritance?
Why do we need oop?
What is the full form of oops?