© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
19 replies
big OOF

❔ Understanding inheritance

Hello, im trying to understand a webshop example from microsoft. Im trying see what GetCardTypesAsync() does. (Attatched is the code from OrdersController)

When peeking the definition i only get to the interface "IOrderQueries" used by the OrdersController.

I find the original function in another cs file "OrderQueries" (by searching for the function name) which inherits the interface but i really cant understand the connection between Orderqueries, the interface IOrderQueries and OrdersController.

How does GetCardTypesAsync() in OrdersController know to use the function declared in OrderQueries just by using a interface?

Anyone see what i dont? Let me know if you need additional info 🙂

Thanks in advance!
message.txt5.26KB
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

✅ Need help understanding inheritance with constructors
C#CC# / help
3y ago
✅ Difficulty understanding Inheritance and where to use Constructor
C#CC# / help
3y ago
Inheritance
C#CC# / help
15mo ago
✅ inheritance
C#CC# / help
2y ago