Difference between revisions of "Object Orientation"

From Suhrid.net Wiki
Jump to navigationJump to search
(Created page with "* * * Category:OCPJP")
 
Line 1: Line 1:
*
+
== Classes and Interfaces ==
*
+
 
*
+
<u> Class Modifiers </u>
 +
 
 +
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)
 +
 
 +
 
  
 
[[Category:OCPJP]]
 
[[Category:OCPJP]]

Revision as of 00:35, 22 August 2011

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)