Exercise 1

1 Declaration Equations and Normal Equations

Write a class, Birthyear, which calculates the birthyear from this year and a persons age.
Point out the declaration equations and the normal equations.


2 Modification Equation

Write an instance of the class Birthyear above. The class, let's call it MartinsBirthyear, shall calculate the Martin's birthyear, call the variable martinsBirthyear, who is a 29-year-old. Point out the modification equation.

Check your answer by writing as below: