C#C
C#3y ago
Nora

✅ Error CS7036 - while trying to inherit a class

I'm building a small Library Management application. I'm using the Person class to manage the relevant people, including the Librarian, Reader and Regular Reader. However, when I attempt to let the Librarian class inherit the Person class, an error showed up.
It probably has something to do with my Person() constructor, but I'm not too sure why.

I've tried adding parameters at the class name (how silly and desperate!), but it of course didn't work.
I've tried adding a Librarian() constructor that has all the required parameters, but the same error is still there (fortunately without new ones?).

I'd appreciate all the help!
bughelp01022023001.PNG
image.png
image.png
Was this page helpful?