answersLogoWhite

0

If you want maintainability, flexibility, and extensibility (and I guess, you do), your design must include encapsulation. How do you do that?

• Keep instance variables protected (with an access modifier, mostly private).

• Make public accessor methods, and force calling code to use those methods rather than directly accessing the instance variable.

• For the methods, use the JavaBeans naming convention of set and get.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How does ozone layer depletion take place?

Ozone layer depletion takes place on PSC's. These are frozen clouds.


Which layer is done by congestion control?

at the network layer, congestion control mechanism takes place


What takes place chemically in the ozone layer?

In the ozone layer, ozone relensihes. It is replenished by UV rays.


Where does most photosynthesis take place in?

Photosynthesis takes place in the chloroplasts found in the mesophyll layer.


Which layer does erosion take place?

The crust is the only place erosion takes place, primarily on the land surfaces.


What is the liquid called where this cycle takes place?

The liquid where the cycle of photosynthesis takes place is called chloroplast stroma.


Where the ozone layer takes place?

The ozone layer is present in the stratosphere. It is because of the perfect UV radiation and temperature to form ozone.


Where in a leaf does photosynthesis take place?

Photosynthesis takes place in the chloroplasts of a leaf, specifically in the cells of the mesophyll layer.


What layer does of earths weather takes place?

Earth's weather primarily takes place in the troposphere, which is the lowest layer of the Earth's atmosphere. This layer extends up to around 10-15 kilometers above the surface and contains all the weather phenomena we experience, such as clouds, rain, and wind.


What layer of the earth does rain happen?

The layer of the atmosphere that most weather takes place in, is the troposphere. This layer is the lowest layer of the atmosphere.


Where most photosynthesis takes place in the leaf?

Most photosynthesis takes place in the mesophyll cell layer of a leaf, specifically in the chloroplasts of these cells. The palisade mesophyll cells are particularly important for photosynthesis due to their high concentrations of chloroplasts and direct exposure to light.


What is the difference between cytokinesis in plant and animal cells?

In plants cytokinesis occurs by the formation of cell plate which takes place by centrifugal method while in animals it occurs by the formation of cleavage furrow which takes place by centripetal method.