Reply interview question

Identify the class variables from this class.

Interview Answer

Anonymous

Nov 22, 2022

You are given a short, straight-forward class to read. Class variables also known as static variables are declared with the static keyword in a class, but outside a method, constructor or a block. There would only be one copy of each class variable per class, regardless of how many objects are created from it.