Forums Register Login

Access instance variables of Abstract class.

+Pie Number of slices to send: Send
Since abstract class cannot be instantiated therefore you cannot access their variables by creating an object so how do you access the variables of abstract class. Please explain with a simple example .
+Pie Number of slices to send: Send
The Java Tutorial on Abstract Methods and Classes should cover that for you. They have examples too.
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 575 times.
Similar Threads
How to access methods and instance variables of an abstract class ?
Abstract regular inner class
abstract classes
Tormented by static methods
Why we can't create object to ABSTRACT & INTERFACE classes?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:36:23.