Code for working with classes, C++
https://github.com/ponyashhh/Classes.git
Define the "Address" type as a class that contains:
- private fields with the name of the settlement and the name of the street, implemented as strings of arbitrary length; house number and apartment number - integers;
- implement all functions according to general requirements.
Define the "Person" type as a class that contains:
- private fields with the first name and last name, implemented as strings of arbitrary length; phone number, consisting of two numerical fields: city code and internal number; address;
- implement all functions according to general requirements.
In the test example, create objects of the "Person" and "Address" types according to general requirements and display information about them in full and abbreviated form.
Define the "Address" type as a class that contains:
- private fields with the name of the settlement and the name of the street, implemented as strings of arbitrary length; house number and apartment number - integers;
- implement all functions according to general requirements.
Define the "Person" type as a class that contains:
- private fields with the first name and last name, implemented as strings of arbitrary length; phone number, consisting of two numerical fields: city code and internal number; address;
- implement all functions according to general requirements.
In the test example, create objects of the "Person" and "Address" types according to general requirements and display information about them in full and abbreviated form.