Page 1 of 1

Create a new project and make sure your package explorer is visible. Create a package called alpha and create a class ca

Posted: Sun Jul 03, 2022 12:02 pm
by answerhappygod
Create a new project and make sure your package explorer isvisible.Create a package called alpha and create a class called Access.In this class create default, public, protected privateintegers called intDefault, intPublic, intProtected,intPrivate. Create a package called beta and create a class calledTestAccess. TestAccess should extend Access. Create a method calledprintMessage(). In this method call System.out.println("intDefault= "+intDefault) and do this for each other type in the Access baseclass. If this doesn't compile, then what can you do to change thecode so it will?Look at the solution Access.java and TestAccess.java