Can a class extend abstract class or interface? why
Answer Posted / ramakrishna
Yes, A class can extend an abstract class also any
interface,why because,A normal class which is implementing
an interface can still be declared as any abstract,if u
extend that class what happens?
u r extending an abstract class and indirectly extending
interface also.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
When does a class need a virtual destructor?
What is local declaration?
Write a program in java to establish a connection between client and server?
How can we access some class in another class in java?
What happens if we don’t define serial version uid?
What is the difference between compile-time polymorphism and runtime polymorphism?
Who is founder of java?
Is boolean a wrapper class in java?
What is role of void keyword in declaring functions?
Is java se free?
What is a pattern what is an anti pattern?
Can constructor be inherited?
How to instantiate static nested classes in java?
Do we have pointers in java?
Which is faster call by value or call by reference?