#constructor #tutorial #explained C++ constructor tutorial example explained
Пікірлер: 20
@BroCodez2 жыл бұрын
#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Ай бұрын
am i tripping? why is this comment 1 year old but the video was posted 2 weeks ago
@draftofspasiba2Ай бұрын
@@lv3234the video was unlisted/private before, after you make it public it will then set a new video date, except for comments.
@misaelsandoval7542 Жыл бұрын
Great video!
@Anonymationsthecoolanimator2 жыл бұрын
Great!
@user-xk7de1jw8g9 ай бұрын
Great lesson.
@artemzakharchuk28429 ай бұрын
Great lesson❤❤❤ Broooo...🎉🎉🎉
@shadmankhan1969 Жыл бұрын
thx bro
@esraafadul292923 күн бұрын
can you make a vid about the destructors as well 😔, ty
@AozenDreyar6 ай бұрын
thank you
@shervin95617 ай бұрын
Thanks
@gamsterilyass295228 күн бұрын
❤❤❤❤
@samsrec60602 ай бұрын
Create tutorial for golang
@MindMatrixx1416Ай бұрын
one night before semester exam 💀💀
@Dazza_Doo Жыл бұрын
Wow another thing C++ does better than C# Why do I say that? C++ () standard brackets C# {} used in a new constructor