Exercise 7: Create the library according to the code fragments describing access and Widget. Create a Widget in a class that is not part of the access package.
import access.*;
public class MakeWidget
{
public static void main(String[] args)
{
Widget w = new Widget();
}
}
public class MakeWidget
{
public static void main(String[] args)
{
Widget w = new Widget();
}
}
Output: