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
Write a program to sort the number with different sorts in one program ??
What is abstraction in oops?
Can you inherit a private class?
What is difference between inheritance and polymorphism?
What is the real time example of encapsulation?
What is variable example?
Why is abstraction used?
Why do we use encapsulation in oops?
What is the purpose of enum?
What is the benefit of oop?
Why is abstraction needed?
What are the benefits of oop?
can inline function declare in private part of class?
What is inheritance in oop?
What is inheritance write a program to show use of inheritance?