Apex Class

PHOTO EMBED

Thu Sep 16 2021 17:38:28 GMT+0000 (Coordinated Universal Time)

Saved by @yinmaster #apex #salesforce #static #keywords #class

public class Human {
    public String Name;
    public Integer Age;
    
    public Human(){
      this.Age = 0;
    }
        
    public void setName(String Name){
        this.Name = Name;
    } 
    
    public void setAge(String Name){
        this.Age = Age;
    } 
    
    public void Run(){
        System.debug('Run');
    } 
    
    public void Jump(){
        System.debug('Jump');
    } 
    
    public void Climb(){
        System.debug('Climb');
    } 
}
content_copyCOPY

https://www.zenintech.org/blog/creating-your-first-apex-class