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 reverse a string using recursive function?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is difference between pop and oop?
Why is there no multiple inheritance?
What are the important components of cohesion?
write a program to find 2^n+1 ?
What is abstract class in oops?
what is different between oops and c++
What is an interface in oop?
What is pure oop?
Explain the advantages of inheritance.
Which language is not a true object oriented programming language?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is class and example? Why is polymorphism needed?