Mr Plow
Posts: 18
Nickname: mrplow
Registered: Jun, 2003
|
|
Re: final abstract class
|
Posted: Aug 4, 2003 1:56 PM
|
|
No you can not declare an abstract final class. The compiler will not let you compile this as the modifiers (final and abstract) indicate totally opposite inheritance functionality for the class on which they are used.
The final keyword when used with regards to a class means that the class can not be extended. For example the java.lang.String class is a final class and can not be used as a parent class in inheritance.
The absract keword when used with regards to a class indicates that the class can not be instantiated and instead is designed for extension.
|
|