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

Popular posts from this blog

Write a program to add two number using inline function in C++?

Traversing of elements program with algorithm and Flowchart