C++ CLASSES & OBJECTS explained easy 🧍

  Рет қаралды 47,308

Bro Code

Bro Code

Күн бұрын

Пікірлер: 46
@BroCodez
@BroCodez 2 жыл бұрын
#include class Car{ public: std::string make; std::string model; int year; std::string color; void accelerate(){ std::cout
@edvardsauzins7041
@edvardsauzins7041 Жыл бұрын
And then Rick realized he's a c++ object and escaped the matrix 😂
@ASTROLOMEGA
@ASTROLOMEGA Ай бұрын
Haahahhaah funny
@fotenks
@fotenks Жыл бұрын
You are a very very good teacher and I hope your C++ vids get way more views and praise
@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!!!! 👍👍👍
@Test-m3i8d
@Test-m3i8d Ай бұрын
Perfect explanation and also nice, clear voice - easy to understand for a not-english-man like me. Thanks a lot!!!😀
@FrederikWollert
@FrederikWollert 9 ай бұрын
Awesome. I really liked that you made 2 examples.
@higiniofuentes2551
@higiniofuentes2551 Жыл бұрын
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
@Benjamin-cx6xb
@Benjamin-cx6xb 2 ай бұрын
Real Bro right there. Thanks Rick!
@unruly_ronin
@unruly_ronin 2 ай бұрын
Smooth and to the point as usual. Common Bro Code W
@joestarjoestar1020
@joestarjoestar1020 2 ай бұрын
WWWWWWW
@majorbangz
@majorbangz 7 ай бұрын
THE LEGEND IS BACK!!!!!!!!!
@siddhitasethmadan6388
@siddhitasethmadan6388 5 ай бұрын
By default the members in structures are public. But in classes by default members are private.
@pythonuser-f7t
@pythonuser-f7t 21 күн бұрын
i just learnt that in arduino(C++ for a microcontreller) code, if you include servo.h, you can create an object caled servo from the class Servo
@dandandan3675
@dandandan3675 2 жыл бұрын
I hope you can make oop playlist in c++
@AsvinThakur391
@AsvinThakur391 2 ай бұрын
Hey Brocade , just wanted to notify you a error not actually so it's error in age where compiler instead of giving the age of human1.age just compiles in the form of F after compilation and I searched it on the the internet and found out that it's a Floating value so solution is just add when writing code "Human1.age="70"; " then the compiler will give 70 while compiling which is what we want !
@carmi-u3j
@carmi-u3j 2 ай бұрын
earnd my sub!
@lightdrago6824
@lightdrago6824 Ай бұрын
"humans sleep right?"
@higiniofuentes2551
@higiniofuentes2551 Жыл бұрын
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!
@serein_11
@serein_11 Ай бұрын
smooth Rick and Morty reference
@NathanEllery
@NathanEllery 5 күн бұрын
I assume you wouldn't actually code attributes into the program because practically they would be entered by a user or read from a data base?
@NoziexGG
@NoziexGG 2 күн бұрын
Yes you are correct, however you will still declare the attributes but you will not assign it a value.
@Dazza_Doo
@Dazza_Doo 2 жыл бұрын
I see Constructors are coming in the next lesson 😋
@cyrussacay3903
@cyrussacay3903 11 ай бұрын
Need help, still confused, is it like struct but with functions?
@Dazza_Doo
@Dazza_Doo 2 жыл бұрын
looks like you don't have to New Up an object - is C# is making me code MORE than C++ (Egregious)
@nitrobeast6629
@nitrobeast6629 5 ай бұрын
what's the difference from classes and structs
@siddhitasethmadan6388
@siddhitasethmadan6388 5 ай бұрын
By default the members in structures are public. But in classes by default members are private.
@tahawaseem6989
@tahawaseem6989 2 ай бұрын
Structures can only have member variables where as class can also have member functions that an object can perform along with its member variables(attributes)
@siddhitasethmadan6388
@siddhitasethmadan6388 2 ай бұрын
@@tahawaseem6989 even structures can have member functions
@МихаилПетров-ж2о
@МихаилПетров-ж2о 2 жыл бұрын
With you OOP is easy
@acdc7331
@acdc7331 29 күн бұрын
what about the private modifier?
@HussamAljaar
@HussamAljaar Ай бұрын
class person{ public: string name; int length ; int birth_year; void study() { cout
@12Jerbs
@12Jerbs 4 ай бұрын
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?
@ujeshasivaramakrishnan2464
@ujeshasivaramakrishnan2464 Ай бұрын
did you make the variables public?
@feedertayfa8745
@feedertayfa8745 8 күн бұрын
when ı saw structs ı tougth it will be our objects. Structs can not be objects because ıt does not have any method if ı am right.
@theorange6460
@theorange6460 11 ай бұрын
#include class Human{ public: std::string name; int age; bool isInjured; void eat(){ std::cout
@bakeronews1
@bakeronews1 7 ай бұрын
Rick & Morty fan 😂😂😂
@fracciuolo
@fracciuolo 3 ай бұрын
RICK AND MORTY MENTIONED!!????? WHAT IS A PROPER EPISODE!!??!?
@shricharanramesh7149
@shricharanramesh7149 6 ай бұрын
Comment no 24
@james.smith763
@james.smith763 5 күн бұрын
Should've made it a woman object instead of a human object
@Vincent45678
@Vincent45678 Жыл бұрын
#include using namespace std; class school { public: //access specifier int roll; string name; char sec; void teach() { cout
@danaildoganov
@danaildoganov 10 ай бұрын
#include class Dog{ public: std::string name; std::string breed; int age; void bark(){ std::cout
C++ CONSTRUCTORS explained easy 👷
8:55
Bro Code
Рет қаралды 33 М.
C++ user defined functions explained 📞
7:24
Bro Code
Рет қаралды 35 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Object Oriented Programming (OOP) in C++ Course
1:30:26
freeCodeCamp.org
Рет қаралды 2,6 МЛН
you will never ask about pointers again after watching this video
8:03
CLASSES in C++
8:42
The Cherno
Рет қаралды 691 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 681 М.
C++ GETTERS & SETTERS explained easy 🔒
6:12
Bro Code
Рет қаралды 20 М.
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 638 М.
C++ pointers explained easy 👈
5:16
Bro Code
Рет қаралды 69 М.
What is INHERITANCE in C++? 👨‍👧‍👧
11:05
Bro Code
Рет қаралды 21 М.
C++ TIC TAC TOE game for beginners ⭕
19:09
Bro Code
Рет қаралды 44 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН