oop - Object oriented tip needed -


I have the situation described below

Model class (m) in which a hashp (h) is a private In the form of area (disclosure of recipient and setter)
Need to modify (M) with access to a new orbit (A) (H) of Hashpe (H)

Which one can be a better way of achieving it?

Use a (I) Meter Ie (M) .get map (). Put (a, b) every time I want to populate this map

b Make a local map, populate it and then use (M). Sitemap (local hash)

< P> add a method to addMapEntry (key, value) {(H). Input (key, value); } And call (m). In Admandry (A)

A. Some feel unsafe because we are exposing the personal context. Will consume more memory and therefore I always like to use C.

Can anyone tell if there is a better option for achieving this ??

Thank you.

c.

Hashpe represents the share of M. State, so M should control it. Ways to call on M then, add entries to the map, remove it, or even completely erase the map, depending on the words of operation, without even knowing all the customers, it is all about Below is a Hashp. The essence of the encapsulation is.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -