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
16
u/tube32 Apr 05 '22
Constructors and why are they important.
Same about setters and getters. What's the point of declaring a variable private only to allowed to access them via public methods?
Dependency injection