C++ CONSTRUCTORS explained easy 👷

  Рет қаралды 10,301

Bro Code

Bro Code

2 ай бұрын

#constructor #tutorial #explained
C++ constructor tutorial example explained

Пікірлер: 20
@BroCodez
@BroCodez 2 жыл бұрын
#include class Car{ public: std::string make; std::string model; int year; std::string color; Car(std::string make, std::string model, int year, std::string color){ this->make = make; this->model = model; this->year = year; this->color = color; } }; int main() { //constructor = special method that is automatically called when an object is instantiated // useful for assigning values to attributes as arguments Car car1("Chevy", "Corvette", 2022, "blue"); Car car2("Ford", "Mustang", 2023, "red"); std::cout
@lv3234
@lv3234 Ай бұрын
am i tripping? why is this comment 1 year old but the video was posted 2 weeks ago
@draftofspasiba2
@draftofspasiba2 Ай бұрын
​@@lv3234the video was unlisted/private before, after you make it public it will then set a new video date, except for comments.
@misaelsandoval7542
@misaelsandoval7542 Жыл бұрын
Great video!
@Anonymationsthecoolanimator
@Anonymationsthecoolanimator 2 жыл бұрын
Great!
@user-xk7de1jw8g
@user-xk7de1jw8g 9 ай бұрын
Great lesson.
@artemzakharchuk2842
@artemzakharchuk2842 9 ай бұрын
Great lesson❤❤❤ Broooo...🎉🎉🎉
@shadmankhan1969
@shadmankhan1969 Жыл бұрын
thx bro
@esraafadul2929
@esraafadul2929 23 күн бұрын
can you make a vid about the destructors as well 😔, ty
@AozenDreyar
@AozenDreyar 6 ай бұрын
thank you
@shervin9561
@shervin9561 7 ай бұрын
Thanks
@gamsterilyass2952
@gamsterilyass2952 28 күн бұрын
❤❤❤❤
@samsrec6060
@samsrec6060 2 ай бұрын
Create tutorial for golang
@MindMatrixx1416
@MindMatrixx1416 Ай бұрын
one night before semester exam 💀💀
@Dazza_Doo
@Dazza_Doo Жыл бұрын
Wow another thing C++ does better than C# Why do I say that? C++ () standard brackets C# {} used in a new constructor
@theouterspace5285
@theouterspace5285 Күн бұрын
#include class Agent { public: std::string name; std::string role; std::string gender; std::string origin; enum agentRoles {DUELIST, CONTROLLER, INITIATOR, SENTINEL}; static const char* generateRole(agentRoles role) { const char* agentRoleStrings[] = {"Duelist", "Controller", "Initiator", "Sentinel"}; return agentRoleStrings[role]; } static const char* generateGender(char gender) { gender = toupper(gender); switch(gender) { case 'F': return "Female"; case 'M': return "Male"; default: return "Unknown"; } } void generateInfo() { std::cout
@AYSMOKASHI
@AYSMOKASHI 6 ай бұрын
#include class Car{ public: std::string brand = "Vehicle"; std::string model = "Model"; int year; void drive(){ std::cout
@imslippykid8834
@imslippykid8834 13 күн бұрын
WifeCar.Drift()
@danaildoganov
@danaildoganov 4 ай бұрын
#include class Dish{ public: int calories; std::string ingridients; int protein; std::string taste; Dish(int calories, std::string ingridients, int protein, std::string taste){ this->calories = calories; this->ingridients = ingridients; this->protein = protein; this->taste = taste; } }; int main(){ Dish macandcheese(800, "Mac and Cheese", 50, "Yummy"); std::cout
C++ GETTERS & SETTERS explained easy 🔒
6:12
Bro Code
Рет қаралды 8 М.
C++ CLASSES & OBJECTS explained easy 🧍
10:54
Bro Code
Рет қаралды 12 М.
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 134 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 17 МЛН
are "smart pointers" actually smart?
9:44
Low Level Learning
Рет қаралды 72 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 753 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 391 М.
What is INHERITANCE in C++? 👨‍👧‍👧
11:05
Bro Code
Рет қаралды 10 М.
C++ user defined functions explained 📞
7:24
Bro Code
Рет қаралды 11 М.
How Constructors Work With Inheritance | C++ Tutorial
8:14
Portfolio Courses
Рет қаралды 18 М.
C++ Pointers - Finally Understand Pointers
15:56
Caleb Curry
Рет қаралды 209 М.
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 164 М.
İĞNE İLE TELEFON TEMİZLEMEK!🤯
0:17
Safak Novruz
Рет қаралды 511 М.
ВАЖНО! Не проверяйте на своем iPhone после установки на экран!
0:19
ГЛАЗУРЬ СТЕКЛО для iPhone и аксессуары OTU
Рет қаралды 6 МЛН
Проверил, как вам?
0:58
Коннор
Рет қаралды 13 М.