C++ Object Oriented Programming Help! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

C++ Object Oriented Programming Help!

I am having trouble understanding OOP concepts of C++. Is there a good book/ YouTube Video explaining the same. PS. I understand objects and methods and all basic OOP stuff, I am not asking about that

11th Dec 2020, 12:51 PM
artiste
artiste - avatar
10 Answers
+ 9
Let's say Imagine that you need to make a game in which there are, for example, 10 bots. What will you do - you will create variables for each of them, their own functions, methods, in general, the same code will be rewritten 10 times, and if you need to change something, you will do it for all bots which is very inconvenient. And with OOP, you make one class, in which you write all the methods, variables, functions once, and then create 10 instances that inherit everything from the class. And you make changes only to the class, then it will be reflected in all instances. This is actually very convenient and improves productivity. It mainly follows the DRY rule - Don't Repeat Yourself!! It is the golden rule of programming....
11th Dec 2020, 3:15 PM
Aastha
Aastha - avatar
+ 8
You can learn it from many resources such as YouTube Udemy W3School Coursera etc
11th Dec 2020, 3:09 PM
Aysha
Aysha - avatar
+ 6
artiste most welcome
12th Dec 2020, 6:02 PM
Aysha
Aysha - avatar
+ 6
artiste welcome 🙂
12th Dec 2020, 6:05 PM
Aastha
Aastha - avatar
+ 3
Sayyam Jain Aysha Simra Alpha Zero $ααρԋιɾє ☆☆☆ Äňďřò Thanks y'all for the suggestions and help!
12th Dec 2020, 5:51 PM
artiste
artiste - avatar
12th Dec 2020, 7:35 AM
Sayyam Jain
Sayyam Jain - avatar
+ 1
hey, What's parts maby someone here could simplify it for you?
11th Dec 2020, 1:04 PM
D_Stark
D_Stark - avatar
+ 1
see YouTube channel the cherno, c++ playlist
11th Dec 2020, 1:18 PM
Alpha Zero
Alpha Zero - avatar
+ 1
go and visit YouTube channel Giraffe Academy
12th Dec 2020, 3:39 AM
Äňďřò
Äňďřò - avatar
0
D_Stark virtual functions and member initialzers, but now I got it online. Thanks ☺️
12th Dec 2020, 5:50 PM
artiste
artiste - avatar