Loading tutorials
List, and how to declare a class with an access modifier. Constructors, static members and interfaces get their own chapters. Here the focus is the part of a class that belongs to each object.4 min readnew. This chapter covers how to declare constructors, how to overload them, how one constructor can call another with this(...), and how the this keyword refers to the current object. It assumes you can read basic Apex and know5 min readList, Set, and Map. It covers the final keyword, the static final constant pattern, and the mistakes that most often trip people up.5 min readList and Map, and that you know access modifiers such as public and private. It covers the syntax for interfaces, the rules the compiler enforces, and the mistake4 min readList and Map. Here you will learn how one variable type can hold many different classes, how Apex picks the met5 min readimplements, as covered in the earlier chapters. It also assumes you know that List is an ordered collection. The goal is to use one system interface, Comparable, to control how List.sort() orders your own objects4 min readstatic, interfaces, virtual, abstract, and override work, and that you know Apex code runs inside transactions. Here you decide which of those tools fits a given problem.5 min read