Type Class
Type t1 = Account.class; Type t2 = Type.forName('Account'); System.assert(t1.equals(t2));
Type.forName의 활용
System.Type objType = Type.forName('Animal'); Animal target = (Animal) objType.newInstance(); System.debug('***target: ' + target); // 기본 생성자 실행 + 전역 변수 값 출력