АК
Алеся Кабаева

помогите написать код с++

Class declaration and inheritance

Declare abstract class person with private properties name and salary, their accessors and mutators, and virtual method int getBonus()
Declare classes employee and manager which derives from class person.

Constructors
For all classes implement default, parameter and copy constractors. In corresponded cases apply constructor inheritance.

Polymorphism
Implement method getBonus for classes employee and manager. Method in employee class should return 10% of salary, while in manager class - 30%

Overload of input and output operators for class person to read and write it in form "name salary". (without quotes)

Handling exceptions
Make setSalary mutator to throw out_of_range exception if value to set is below zero.

П2
Павел 2007

Учим русский: "помогите" не значит "сделайте за меня". У тебя что-то не выходит? Так и спрашивай.
Ну или замени "помогите" на "сделайте за деньги".

Татьяна Шиманская
Татьяна Шиманская

интересно это вообще откуда задание??? ?
очень мило что на английском)

Выше правильно ответили это работа за деньги)

Похожие вопросы
Помогите плиз написать два кода) С++
Помогите плиз написать два кода, С++
Помогите написать код программы в С++
Помогите написать код си
Помогите написать код
Помогите написать код в си
Помогите написать код в Си.
помогите написать код на с #
Помогите написать код в делфи?
Помогите написать код на с++