Professional Documents
Culture Documents
Oop Lab 4
Oop Lab 4
4.1
Both variable and method are publicly accessible as the keyword public is used prior to the names. They
both did not contain any assignments yet. More precisely, they did not have any values or operations
which they could perform upon calling.
4.2
4.3
The subclasses cannot be created as we have modified the access of the field and methods of the parent
class.