I have created multiple classes, some inherited from others.
I have problem with the Class' ContSalariat constructor. It says "'N' was not declared in this scope."
ContNormal inherits the Cont class. This relationship has worked perfectly, so I will not post the Cont header and cpp.
The words are in Romanian, but the structure is pretty easy to read.
ContNormal::ContNormal(int c, double s, string N) : Cont(c, s, N) ContSalariat::ContSalariat(int c, double s, string nume, double sal) : ContNormal(c, s, N)
If you are changing name of variable, change routines which uses it too.
Also you do not need to set blocat to false, ContNormal constructor will do this for you.