C++ CLASSES & OBJECTS explained easy 🧍

  Рет қаралды 18,875

Bro Code

Bro Code

Күн бұрын

#Objects #Oriented #programming
C++ intro to object-oriented programming tutorial example explained

Пікірлер: 28
@BroCodez
@BroCodez 2 жыл бұрын
#include class Car{ public: std::string make; std::string model; int year; std::string color; void accelerate(){ std::cout
@edvardsauzins7041
@edvardsauzins7041 9 ай бұрын
And then Rick realized he's a c++ object and escaped the matrix 😂
@siddhitasethmadan6388
@siddhitasethmadan6388 Ай бұрын
By default the members in structures are public. But in classes by default members are private.
@marxLz
@marxLz 2 жыл бұрын
The lessons (the full course version) just pops up my news feed. I'm not here in this course series yet, but soon I'll get on to these lessons. Just finishing the javascript course. Pure like bro!!!! 👍👍👍
@fs7bjmc
@fs7bjmc Жыл бұрын
#include class Player{ public: std::string name; long double strength;//don't type long long double long double flex;//i think just don't input number below, higher than quintillion digits? std::string object; void Move(){ std::cout
@maazhasan2874
@maazhasan2874 Жыл бұрын
good work man!!!
@FrederikWollert
@FrederikWollert 5 ай бұрын
Awesome. I really liked that you made 2 examples.
@nitrobeast6629
@nitrobeast6629 Ай бұрын
what's the difference from classes and structs
@siddhitasethmadan6388
@siddhitasethmadan6388 Ай бұрын
By default the members in structures are public. But in classes by default members are private.
@higiniofuentes2551
@higiniofuentes2551 11 ай бұрын
You said class is better than structs because they can have methods, well we can create functions with structs too! The difference is only the first have the methods inside? Thank you!
@Fotenks
@Fotenks Жыл бұрын
You are a very very good teacher and I hope your C++ vids get way more views and praise
@higiniofuentes2551
@higiniofuentes2551 11 ай бұрын
Thank you for this very useful video!
@abishekpathak2818
@abishekpathak2818 2 жыл бұрын
thanks bro this is the best video ever seen in youtube...GOD BLESS U.you are like angle for me..keep uploading bro
@danaildoganov
@danaildoganov 5 ай бұрын
#include class Dog{ public: std::string name; std::string breed; int age; void bark(){ std::cout
@majorbangz
@majorbangz 3 ай бұрын
THE LEGEND IS BACK!!!!!!!!!
@dandandan3675
@dandandan3675 Жыл бұрын
I hope you can make oop playlist in c++
@Dazza_Doo
@Dazza_Doo Жыл бұрын
looks like you don't have to New Up an object - is C# is making me code MORE than C++ (Egregious)
@12Jerbs
@12Jerbs 20 күн бұрын
I've created the Human class, but when setting human1.name within int main(), name is highlighted red with class "Human" has no member "name". If I run the code though, it runs without error and outputs the name as expected. Any idea how to resolve this in VSCode?
@Dazza_Doo
@Dazza_Doo Жыл бұрын
I see Constructors are coming in the next lesson 😋
@МихаилПетров-ж2о
@МихаилПетров-ж2о Жыл бұрын
With you OOP is easy
@cyrussacay3903
@cyrussacay3903 7 ай бұрын
Need help, still confused, is it like struct but with functions?
@bakeronews1
@bakeronews1 3 ай бұрын
Rick & Morty fan 😂😂😂
@shricharanramesh7149
@shricharanramesh7149 2 ай бұрын
Comment no 24
@theorange6460
@theorange6460 7 ай бұрын
#include class Human{ public: std::string name; int age; bool isInjured; void eat(){ std::cout
@Vincent45678
@Vincent45678 10 ай бұрын
#include using namespace std; class school { public: //access specifier int roll; string name; char sec; void teach() { cout
C++ CONSTRUCTORS explained easy 👷
8:55
Bro Code
Рет қаралды 15 М.
What are C++ namespaces? 📛
4:37
Bro Code
Рет қаралды 34 М.
The day of the sea 😂 #shorts by Leisi Crazy
00:22
Leisi Crazy
Рет қаралды 1,1 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,7 МЛН
C++ object oriented programming (#21) 📦
10:02
Bro Code
Рет қаралды 7 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 808 М.
you will never ask about pointers again after watching this video
8:03
Static for Classes and Structs in C++
9:12
The Cherno
Рет қаралды 352 М.
"Clean" Code, Horrible Performance
22:41
Molly Rocket
Рет қаралды 888 М.
C++ GETTERS & SETTERS explained easy 🔒
6:12
Bro Code
Рет қаралды 10 М.
The day of the sea 😂 #shorts by Leisi Crazy
00:22
Leisi Crazy
Рет қаралды 1,1 МЛН