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
2019-12-17 15:05:27 +01:00

41 lines
2 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

==========================================================================
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.