10.6 Declaring and Initializing a Class Instance
So far all we have done is define the blueprint for our class. In order to do anything with this class, we need to create instances of it. The first step in this process is to declare a variable to store a reference to the instance when it is created. We do this as follows:
var account1: BankAccount = BankAccount()
When executed, an instance of our BankAccount class will have been created and will be accessible via the account1 variable.