r/learnprogramming • u/Temporary-Warthog250 • Apr 05 '22
Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them
Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.
Someone else who reads yours and does understand it, try to explain it to them to help them learn
1.6k
Upvotes
2
u/Brafaan Apr 06 '22
Thanks so much, I really appreciate the answer! In C# 8, interfaces can have default implementations, so for me, its the same as an abstract class? Or is the main difference that an interface forces you to implement all its methods, where you dont have to use all from an abstract class?
Do you have an example of where to use them in a real life scenario? Like why an abstract class over a normal parent class? Why an interface instead of an abstract class?