Question: what is the difference between class method and instance method?
Answer: Class methods are methods which are declared as static. The method can be called without creating an instance of the class. ... Instance methods on the other hand require an instance of the class to exist before they can be called, so an instance of a class needs to be created by using the new keyword.