Java J2EE Training: Inheritance 2

ENCAPSULATION:

  • Implement encapsulation

–by marking the field as private.

–by marking the member function as private.

INHERITANCE:

  • avoids reinventing the wheel
  • promotes code reusability
  • derives a new class from the existing class

–use (more…)

This content is restricted to site members. If you are an existing user, please log in. New users may register here.

Existing Users Log In
 Remember Me