Is the following legal in Java? The class ToyClass is defined in Display 5.11.
System.out.println(new ToyClass("Mr. Cellophane", 0));
Suppose you want to use the class CoolClass in the package mypackages.
library1 in a program you write. What do you need to do to make this class
available to your program? What do you need to do to make all the classes in
the package available to your program?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here