Difference between revisions of "Object Orientation"
From Suhrid.net Wiki
Jump to navigationJump to search| Line 1: | Line 1: | ||
| − | == | + | == Class Modifiers == |
| − | |||
| − | |||
Regular Classes: | Regular Classes: | ||
Revision as of 00:35, 22 August 2011
Class Modifiers
Regular Classes:
- Access Modifiers: public and default only
- Non access: strictfp, abstract and final only
- Adding any other modifier will result in a compiler error.
- A final class cannot be overriden (e.g. String)
- An abstract class cannot be instantiated (e.g. DateFormat)