Object Orientation

From Suhrid.net Wiki
Revision as of 00:35, 22 August 2011 by Suhridk (talk | contribs)
Jump to navigationJump to search

Classes and Interfaces

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)