Professional Documents
Culture Documents
Apex 7 Class and Object
Apex 7 Class and Object
Object - is something which occupies real time memory. Object has states and
behaviours
Method:
1) It has collection of statements
syntax of method:
accessModifier returnType MethodName(arg1,arg2,...){
//Statements
}
Creating an apex class - dev console < file < New < Apex class < Name < Save
exercice: create a class called employee with variablse Name, Designation, Salary,
Age. Create multiple objects for this class
-----------
public class Dog {
public String Name;
public Integer Age;