Hi i just have a question,
i was doing the pass midterm the question is asking that
" Write a class Jacket, which has a boolean instance variable isReversible and a static int variable numJackets. There are no methods "
correct Ans:
public class Jacket {
private boolean isReversible;
private static int numJackets;
}
------------------------
i just wondering for the last one
can i write like :
public static int numJackets;
is that okay ?
Thank you