In my code my child classes are not picking up my parent class for some reason.
I’m not even sure what code to give you because its so simple and should be working.
I’ve looked at similar code and cant see any differences. If you need more of the code just ask just as I don’t want to have a huge page of code for 1 question.
well in c# the class Names text comes up in blue and its just coming up in black text wich makes me asume they arent geting picked up right. the top line is giving me the error “Expected class, delegate,enum,interface or struc”
WagedEmployee emp1 = new WagedEmployee
public class Employee : Object
{
.....
}
public class WagedEmployee : Employee
{
......
}
public class SalaryEmployee : Employee
{
.....
}
From the code you’ve provided, the first line doesn’t appear to be inside a class of any kind. It need to be a part of a class or struct or something. It can’t just be under the namespace.
try this: