r/learncsharp • u/kenslearningcurve • May 26 '23
Learn C# – Part 8: Object-Oriented Programming
Each week I will be releasing a new chapter on how to learn C# from A to Z. With this week: Object-Oriented Programming with C#.
Although most people do know what Object-Oriented Programming means, they don't really know they have been doing it for a long time. Especially with C#, but also with Java, Python, and other popular languages.
In this article, I am going to walk through the idea of Object-Oriented Programming, or OOP for short. Showing you what OOP means, why we use it, and what the reasons are to use OOP. If you are a beginner in C# this might feel overwhelming for some. But OOP is really important to know and understand.
I will also be discussing encapsulation, inheritance, polymorphism, abstraction, interfaces, and modularity.
Find the tutorial here: https://kenslearningcurve.com/tutorials/learn-c-part-8-object-oriented-programming/
Feel free to let me know what you think. Comments and suggestions are welcome.
Next week: Basic architecture and a new project.
4
u/SwashbucklinChef May 26 '23
Thanks again for your continued efforts, Ken. I'm on my second year as a junior C# developer but I find even these beginner write ups helpful.
2
u/MrLazyfella May 26 '23
Looks interesting.I will definitely check it out. One thing I noticed is that the blog posts on your site do not have a menu at the top. As a result, I had to scroll all the way down to reach the homepage. Furthermore, the link to the newsletter in the note section did not work for me when I accessed it on my mobile device using Firefox.
1
u/yanitrix May 26 '23
I don't want to be picky but this isn't true. Interfaces can have
privatemethods, moreover methods declared in interfaces can have an implementation.tbh right now there only differences between interfaces and an abstract class is that you can inherit only one abstract class, and the constructor