.


:




:

































 

 

 

 





, . , .

, , .

, . , . .

, , , .

 

3. ++. ++: , .

 

"" " ".

- , , . .

, , ( ), , ( ).

++ .

++ , . , , ( ).

++ . , .

 

( 2)

 

1. : , .

2. : : , .

3. : , .

.

-, "/ " ( ), .. "". , : , "".

-, "/", .. "". , .

-, , , . , .

. , - :

();

;

();

;

. ()

} . Product , , Sale , .

Class Product; class Sale;

Class Product

{ Sale* lastSale;

...

};

Class Sale

{ Product** productSold;

...

};

. , , . , , .

, "Product Sale" : , , , , , .

() . :

--;

--;

--.

--: , Sale .

-- . , "" " ": .

-- . , "" " ", " " "".

. .

} . , Controller h Heater ().

Class Controller

{ Heater h;

...

};

    1. class Controller

{ Heater *h;

...

};

. .

. Controller , . Controller , Heater () . .

, , . , , , . . .

++ - - , 1. ( 2). Controller - , , Heater, . : () .

. Heater Controller, . "", ( ).

, , -.

- , ( , ), , .

() , , , . , () ().

-. . , - .

 





:


: 2016-10-22; !; : 540 |


:

:

, ,
==> ...

1302 - | 1261 -


© 2015-2024 lektsii.org - -

: 0.01 .