Question: Given the following class, which of these alternatives are valid ways of referring to the class from outside of the package net.basemaster? Select the two
Given the following class, which of these alternatives are valid ways of referring to the class from outside of the package net.basemaster?

Select the two correct answers.
(a) By simply referring to the class as Base
(b) By simply referring to the class as basemaster.Base
(c) By simply referring to the class as net.basemaster.Base
(d) By importing with net.basemaster.*, and referring to the class as Base
(e) By importing with net.*, and referring to the class as basemaster.Base
package net.basemaster; public class Base { }
Step by Step Solution
3.42 Rating (149 Votes )
There are 3 Steps involved in it
c and d A class or interface name can be referred to by using either its fully qu... View full answer
Get step-by-step solutions from verified subject matter experts
