...in the base class. The polymorphism is implemented.
Let us take a look at its effects in the main function.
Main
int
main(
)
{
person *
arr[
2
]
;
student s1(
"John"
,
"male"
,
19
,
4343
,
5
)
;
employee e1(
"Elia"
,
"female"
,
35
,
1067
,
8
)
...