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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply