Class Dog is created in the package animals, and class Peter - in the package humans. Choose all appropriate variants of description for import construction,so that class Peter will be able to create and use objects of class Dog?
Explanation
For this case import package.class construction is used, where class could be a concrete class name or symbol *.
Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback