© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
43 replies
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Any way to inherit base abstract class' constructor?
C#CC# / help
2y ago
Multiple classes defining same props vs inherit from base class
C#CC# / help
4y ago
Error while trying to publish WPF Application
C#CC# / help
3y ago
✅ Get this error while trying to Deserialize object
C#CC# / help
3y ago