A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Regarding abstarct classes
Joined: May 22, 2006
Jun 15, 2006 22:49:00
i HAVE A QUESTION PLZ ADVICE....
Subclasses of an abstract class that do not provide an implementation of an abstract method, are also abstract??
Joined: Oct 23, 2005
Jun 15, 2006 22:56:00
Such a class does not compile.
If you mark them as abstract, though, they will compile. There's no such thing as a non-abstract class that inherits from an abstract class and does not provide implementations of its parent's abstract methods.
Down Home Country Coding with Scott Selikoff
Ramasubbhu Allur Kuppusamy
Joined: Sep 16, 2005
Jun 16, 2006 01:33:00
In other words, the first concrete subclass of an abstract class should implement all the methods in the abstract parentclass.
Regards,<br />Ram.<br />SCJP 1.4
It is sorta covered in the
JavaRanch Style Guide
subject: Regarding abstarct classes
Tech Word Game
WA #1.....word association
difference between BufferedInputStream(or output) and other i/ostreams,regarding buffers.
Reg. native methods
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014