Question: package one Class A { Void welcomemessage ( ) { System.out.printIn ( ? * * Hello, welcome ) } } package two class B
package one
Class A
Void welcomemessage
System.out.printIn Hello, welcome
package two
class B
Void goodbyemessage
System.out.printin Bye Bye
Please write all possible cases to place access modifiers in above code for methods
welcomemessage and
goodbyemessage with their impact with respect to access.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
