• 0 Posts
  • 11 Comments
Joined 1 year ago
cake
Cake day: July 13th, 2023

help-circle






  • Absolutely agree with this one. Write down the problem and then the connections you made and the task that made you understand it.

    For me it was interfaces (c# in this context). Like when do you even need them. How could an interface even be an argument for a function??

    Then a problem came up, where a List or an Array could be a parameter in a function, but their length/count is not accessed the same way (still c#.) After this it clicked, that with interfaces you dont care whether it is a car or a cat, even a dog, if it can bark, it can be passed as a parameter into this function, and inside the function we only use these interfaced functions.