1
0
Fork 0
This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
uni-m.cds-adv-prog/ex4.1/tree.txt

42 lines
2.0 KiB
Plaintext
Raw Normal View History

2019-12-17 15:05:27 +01:00
==========================================================================
a)
==========================================================================
+-----------+
| Telephone |
+-----------+
|
|
+------------>-------->-+-----<---------<-------+
| | | |
+-------+ +---------+ +--------+ +---------+
| Cable |->-| Handset | | Dialer | | Housing |
+-------+ +---------+ +--------+ +---------+
| | |
+-->-----+--<-+ | +---------------+
| | | | |
+-----------+ +----------+ +--------+ +---------+ +-------+
| Moutpiece | | Earpiece | | Button | | Chassis | | Shell |
+-----------+ +----------+ +--------+ +---------+ +-------+
==========================================================================
b)
==========================================================================
In file included from Handset.hh:7,
from Telephone.hh:7:
Cable.hh:4:7: fout: redefinition of class Cable
4 | class Cable {
| ^~~~~
In file included from Telephone.hh:4:
Cable.hh:4:7: note: previous definition of class Cable
4 | class Cable {
| ^~~~~
Header protectors missing in Cable.hh
==========================================================================
e)
==========================================================================
Yes, it does.