Konrad Zuse

Konrad Zuse

Today is the birthday of Konrad Zuse, inventor of the first automated digital computer in 1941, the Z3.

Advertisements

The Java Programming Language

Access Control

In Java you can limit the access to the members of a class whether they be variables or methods.

There are four levels of access. Three of them you have to declare explicitly.

  • private
  • public
  • protected

If you do not place any one of the above modifiers in front of an class, variable, method or any Java member, you get what is default access. In default access, you get access within a package.

Private access is only access within a class.
Public access is open to the whole world.
Protected access, only the class and its children can have access.