click below
click below
Normal Size Small Size show me how
Apex
| Question | Answer |
|---|---|
| OOP | combines data and methods into a single class which inherits data from other classes and new classes can be added easily but has complex design and difficult to view entire program |
| Class | like a blueprint of how data and methods behave camelcaps and requires access modifier |
| Object | instance of a class during runtime |
| Attribute | variable to store data in a class or object |
| Parameter | input variable for method |
| Method | performs a specific task and runs when called is reusable accepts parameters is camelcase |
| 4 Pillars of OOP | encapsulation abstraction inheritance polymorphism |
| Encapsulation | bundled related properties and methods in same class that restricts external access where details are hidden |
| Abstraction | hides implementation by having a main method call hidden methods |
| Inheritance | basing an object or class on another and maintains original behaviors while making new ones |
| Polymorphism | methods and attributes have same name but different implementation called overloading |
| Two Types of Polymorphism | compile time static is class based and runtime dynamic is object based |
| UPDI | how a programmer solves problems understand plan divide and implement |
| Execute Anonymous | manually test code generate debug log and runs in user context with ctrl e |
| Apex | server side language that is strongly typed object oriented case insensitive and can access salesforce database |
| Integer | 32 bit number works for most things |
| Decimal | number with decimal point |
| Double | 64 bit number can be huge |
| String | characters with single quotes |
| Boolean | true or false |
| ID | valid 18 character unique record identifier |
| Switch | faster than nested if else can be integer sobject or string and if more than one if else use switch |
| Final | like const only for attributes |
| Static | accessable directly from class using dot notation |
| Instantiation | variable declaration |
| Definition | value assignment |
| Private | only containing class |
| Protected | only classes nested in class or extended class |
| Constructor | method with same name as class has camelcaps runs on each instantiation of class |
| Scope | access and visibility of variables changes based on level using curly brackets |
| Interface | template for other classes that uses abstraction and encapsulation |
| Audit Logs | tracks changed to system by admin is customized security and sharing and data management setup-view setup audit trail |
| Login History | last 6 months can be queried |
| Trace Flags | monitors and produces debug log |
| Debug Logs | stores actions and data from program ran |
| Checkpoints | helps track changing variables and can have only five |
| Collections | complex datatypes that store multiple records in one variable |
| Lists | ordered by index |
| Sets | unordered with unique values |
| Maps | uses key value pairs and key must be unique |
| SOQL Salesforce Object Query Language | used when objects are known can get data from single and related objects |
| SOSL Salesforce Object Search Language | used when objects arent known can get data from multiple objects |
| DML Database Manipulation Language | mainpulate schema to perform crud operations |
| Merge | merge up to three records of same sobject deletes others and reparents related records |
| Apex DML | if one record fails they call fail |
| Database Language | if allornone set to false then one record wont cause others to fail |