Unit 2 (2marks)
Unit 2 (2marks)
3. What is an Interface?
Interface is an outside view of a class or object which emphasizes its
abstraction while hiding its structure and secrets of its behavior
7. Define Package.
To create a package is quite easy: simply include a package command
as the first statement in a Java source file. Any classes declared within that file
will belong to the specified package. The package statement defines a name
space in which classes are stored. If you omit the package statement, the class
names are put into the default package, which has no name.