Professional Documents
Culture Documents
SEN 202 Lecture 7
SEN 202 Lecture 7
Package is a folder that groups related classes. When you are inheriting you
'extend'.
Inheritance
In java, where we have sub class(child) and super class(parent) and sub class will
inherit super class
'protected' is accessible within the same package (other classes within the same
package can access it).
'private' is only by the same class.