Todayโs article is going to be quite interesting. Remember how I said Iโd eventually cover OOP (Object Oriented Programming)?.... Wellโฆ THE TIME HAS FINALLY COME! Object oriented programming, as much as many folks (except for me shockingly haha) hate, ITโS A REQUIRED skill and knowledge set ESPECIALLY if you plan to be a Software engineer or read ANY form of code in general. I kid you not, NOT knowing OOP will lock you out of being able to read 99 percent of modern code today. Itโs EVERYWHERE so itโs CRUCIAL you understand it.
๐ Article ๐ Glossary ๐ Catalog ๐ Home ๐ Search ModeTodayโs article is going to be quite interesting. Remember how I said Iโd eventually cover OOP (Object Oriented Programming)?.... Wellโฆ THE TIME HAS FINALLY COME! Object oriented programming, as much as many folks (except for me shockingly haha) hate, ITโS A REQUIRED skill and knowledge set ESPECIALLY if you plan to be a Software engineer or read ANY form of code in general. I kid you not, NOT knowing OOP will lock you out of being able to read 99 percent of modern code today. Itโs EVERYWHERE so itโs CRUCIAL you understand it. For todayโs article, instead of teaching it via conventional analogies and methods, Iโm going to mix it up a bit and do it my own way. Iโm also going to simplify and elaborate on stuff like Polymorphism as well. Iโm going to stick to the more general stuff thatโs seen in many languages that feature some form of OOP. Iโll even talk about stuff like methods which is Javascripts supposed โanswerโ or โversionโ of OOP in a sense (although they still feature it in C++ fashion shockingly). Sit back, relax, and prepare to embrace how something is so complicatedโฆ CAN BE REALLY SO SIMPLE HAHA.
I'll be discussing the following topics in order: ๐ What is OOP? ๐ What is OOP (Members)? You can click on any of the topics to simply check that one out if it interests you! NOTE: Articles are read from LEFT to RIGHT via 2 columns! Read the first column all the way down and then move to the next one!
Here's a quick run down on all the main links that are in the article in case you want to check them out first. ๐ LinkedIn Version
OOP, which stands for Object Oriented Programming, is just basically a way to model custom functions that you can call and use around in your code. It simplifies the complexity and time consuming need to re-write complex programming algorithms from scratch, making your life easier. A perfect example of what I mean by that would be modules like with Python, were you can just โimportโ or โincludeโ something and you just call an โobjectโ for it and youโre good to go.
For example, (DOWNLOAD THE IMAGE IF IT'S TOO SMALL FOR YOU)
Without OOP, youโd have to build ALL, and I mean ALL of this from scratch over and over and over again.
Youโve probably seen me mention something about โmembersโ that belong to a class, where you can โcall themโ and use any that are available to you. Members are basically the overall functions that make up classes and can even be made available to other classes that need them via โPolymorphismโ, which is a fancy term for โinheritanceโ, which is where other classes youโve written โinheritโ functions belonging to other classes you have Think of it like โbiologyโ, where you โinheritโ dominant and recessive traits stemming from your parents.
Hereโs an example to put it better into perspective for you. Iโm going with C++ on this one since itโs THE BEST example one can give on the matter
I hope this little light hearted lesson on what OOP is helped you out a ton.
- The Hacker Who Laughs ๐ธ๐ธ๐๐ธ๐ธ