C
C#16mo ago
0_00

What does this error code mean

'Supervisor' does not contain a definition for 'getlastName' and no accessible extension method 'getlastName' accepting a first argument of type 'Supervisor' could be found (are you missing a using directive or an assembly reference?) [assignmentrandom1]
'Supervisor' does not contain a definition for 'getlastName' and no accessible extension method 'getlastName' accepting a first argument of type 'Supervisor' could be found (are you missing a using directive or an assembly reference?) [assignmentrandom1]
To clarify, I made two children class that both call 'getlastName', however only one class gives this error while the other class works fine when called.
2 Replies
Doombox
Doombox16mo ago
post some code, if one works and another doesn't that usually indicates either an accessibility issue or you're missing a using directive as it says
0_00
0_0016mo ago
turns out it was a caps error on my end nvm lol