Create a new project and make sure your package explorer is visible. Create a package called alpha and create a class ca
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Create a new project and make sure your package explorer is visible. Create a package called alpha and create a class ca
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