Can we have a abstract class withought any method? What is a
purspose of this?
Answers were Sorted based on User's Feedback
Answer / malli
Yes,we can able to keep abstract class without any any methods.
purpose: Abstract class support for all unimplemented
methods (or) all concrete methods (or) some concrete methods
and abstract methods. so based on requirement we can use
abstract class.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sneha
Ya we can have an abstract class withought any method...It helps to prevent it from being instantiated...
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / sourav kumar verma
it may or may not include abstract methods. Abstract classes
cannot be instantiated, but they can be subclassed.
Is This Answer Correct ? | 0 Yes | 1 No |
How multipleInheritance is possible in java?
What are the differences between path and classpath variables?
Can you access non static variable in static context?
What is string in java with example?
Is there any difference between nested classes and inner classes?
How to deprecate a method? Show it with proper example. Plz give the answer of this.Thanx in advance. mail me: tanzeem.akhtar@gmail.com
How to add and remove nodes in Jtree?
Explain parallel processing in java8?
write a progam hashmap & hashtable?
Write a program to reverse array in place?
How many inner classes can a class have?
What is r in java?