Class Method
They work almost similarly to static methods. Both static methods and class method belongs to the type itself rather than the instance of the type. Start a new Xcode playground and run the following code.
Wait… There is a key difference too! Static methods can not be overridden but class methods can be overridden.
Following is the example of the overridden method