What is the use of an abstract variable?

Asked 7 years ago
Viewed 1026 times

1

What is the use of an abstract variable?

asked by Anonymous User in technology

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...

answered 7 years ago by Hemant Patel

Your Answer