Explain the reason why a function is a complete decomposition unit. What is the purpose of a function?
Explain why function main is a special function.
Why is it necessary to carry out data transfer among functions? How is this accomplished?
Design and write a function definition in KJP that includes two parameters and returns a value.
Explain the reason why more than one initializer function (constructor) is normally necessary in class.
In the complete program presented in this chapter, add two attributes, salary and address, and two or more functions to class Person. Include the corresponding function calls from class Mperson.
Modify the program that computes the salary increase of employees presented in Chapter 4. Design and write two classes, Employee and Memployee. All the computations should be done in class Employee, and function main should be defined in class Memployee.
Design and write a program that consists of three classes: Person, Ball, and Mperson. An object of class Person interacts with two objects of class Ball, as briefly explained in Chapter 3. Redesign of these classes is needed.