What is the use of an abstract variable?

Asked 21-Dec-2017
Viewed 806 times

1 Answer


0

Hi Siya,

We can't declare an abstract variable in Java. Because There is nothing like 'abstract variable'.

In Java, variable can't be declared as abstract. We can only be declared classes and methods using abstract keyword.
Or we also say that only classes and methods can be declared as abstract.
For detailed explanation about abstract keyword, you can visit ABSTRACT CLASS IN JAVA

I hope it's informative for you...