Write the definitions of two classes Day and Night. Both classes have no constructors, methods or instance variables. Note: For this exercise, please do not declare your classes using the public visibility modifier.
LANGUAGE: JAVA
CHALLENGE:
Write the definitions of two classes Day and Night. Both classes have no constructors, methods or instance variables.
Note: For this exercise, please do not declare your classes using the public visibility modifier.
SOLUTION:
class Day{} class Night {}