❔ 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!
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