How do you refer to a class in a package ?give an example
Share
How do you refer to a class in a package ?give an example
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Hey there this is your answer..!!!
Package in Java is a mechanism to encapsulate a group of classes, subpackages and interfaces. Packages are used for: ... For example there can be two classes with name Employee in twopackages, college. staff.
Explanation:
hope this helps you...!!!
Package in Java is a mechanism to encapsulate a group of classes, subpackages and interfaces. Packages are used for: ... For example there can be two classes with name Employee in twopackages, college. staff.
I hope it will help you.
please say thanks and follow me.