What are the advantages of packages also implements this concept with example?
Advantages of Packages:-
1.
The classes contained
in the packages of other program can be easily reused.
2.
In packages classes
can be unique compared with classes in other packages i.e. two classes in two
different packages can have the same
name.
3.
Packages provide a way
to hide classes does preventing other programs or packages from accessing
clsses that are meant for internal use only.
Comments
Post a Comment