Application Class What is an Application Class ? Benefits of Application Class Application Class Structure Terminologies System variables & Overriding Properties
Questions ???
Application Class App Class is a PeopleCode Program at base level
Ability to reuse – by writing Generic Code. Base classes are defined in a way that can be reused
Easy to Maintain – since all common code resides at one place.
Inheritance – Extensibility
Encapsulation – Ability to hide implementation details while extending the class; this is implemented through Private Instance variables and private methods.
Dynamic Execution – Call dynamic methods based on system variables.
General Class Structure Imports Class Name Class Extensions Declaration of Public External interface Declaration of private instance variables and methods Definition of Methods Constructors
General Class Structure contd…
Subclass: An Extended Class – Inherits all the public properties and methods from the extended class
SuperClass:
Class being extended
Methods : 1. Procedure or set of PeopleCode – activated by an Object 2. Methods parameters can be passed by Reference or passed by value Property:
Attribute of an Object
Constructors: 1. A method with in a Class – holds the same name as the Class 2. Executed once an Object is instantiated for the Class – Objects are activated using the keyword Create () 3. Used to initialize default values for Properties & Instance variables System Variables: %This %Super
Class Definition
Class Constructor
Property – Get / Set
Calling Base Class
Class Extension
Instantiate Parent/Base class from Extended Class
Override Method in Extended Class
Call common method from Extended Class
Question 1
Question 2
Question 4