Thursday, October 16, 2008

Class

Class is one of fundamental element OOP (Object Oriented Programming). Class can be illustrated as blueprint or prototype what is applied to create object. Definition Class Class name must be descriptive and better always started with block letters. Name of class better also express the position hierarchy and use underscore as hierarchy winnow.

Form FormUpload //For example file location Form/Db/validator.php Form_Db_validator
Class is defined use apply keyword class who’s followed name of class. Definition of class consist two component, that is declaration class and body class. Declaration class is a first row in class. And minimum defined name class. Body defined after name class and between confine streamer { }
//declaration class Class Form { //body class }

0 comments:

Post a Comment