Write the definition of a class Telephone. The class has no constructors, one instance variable of type String called number, and one static variable of type int called quantity.
Language: Java
Challenge:
Write the definition of a class Telephone. The class has no constructors, one instance variable of type String called number, and one static variable of type int called quantity.
SOLUTION:
Language: Java
Challenge:
Write the definition of a class Telephone. The class has no constructors, one instance variable of type String called number, and one static variable of type int called quantity.
Solution:
public class Telephone{ private String number; private static int quantity; }