Professional Documents
Culture Documents
Creating
references c1,
c2 pointing to
objects
Specifiers for class, attributes, methods, local
variables
• Control accessibility and visibility (access specifiers)
• Other functionalities and feature (non-access
specifiers)
Inheritance
Multithreading
protected Access the variables and methods within and within the
sub-classes across packages
Decreasing
default / no access specifier Access the variables and methods within and outside the restrictiveness
class within package
public Access the variables and methods within and outside the
class across packages
c2
Implementing Encapsulation using private and public / default
Array of objects