- Implement encapsulation
–by marking the field as private.
–by marking the member function as private.
- avoids reinventing the wheel
- promotes code reusability
- derives a new class from the existing class
This content is restricted to site members. If you are an existing user, please log in. New users may register here.