To use make practical use of an abstract class, you must define a non-abstract class that extends the abstract one. It can use any of the inherited non-abstract methods. It must implement any of the abstract ones.
Sometimes a abstract class may extend another abstract class. In that case it need not implement all the non-abstract methods.
A way to cut down on clutter is to avoid various trivial custom configuring methods that your concrete classes must implement. Instead have the configuring constructor pass the configuring data to the generic abstract constructor, much the way a convenience constructor passes constants to an elaborate constructor to fill in the defaults.
| You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | |
| http://mindprod.com/jgloss/abstract.html | J:\mindprod\jgloss\abstract.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.191.114] | |
| Feedback | You are visitor number 87,181. | |