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?
For this case import package.class construction is used, where class could be a concrete class name or symbol *.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Sign Up Now
or Subscribe for future quizzes