C++ overloaded functions explained 🍕

  Рет қаралды 13,311

Bro Code

Bro Code

Күн бұрын

Пікірлер
@BroCodez
@BroCodez 2 жыл бұрын
#include void bakePizza(); void bakePizza(std::string topping1); void bakePizza(std::string topping1, std::string topping2); int main() { //bakePizza(); //bakePizza("pepperoni"); //bakePizza("pepperoni", "mushroom"); return 0; } void bakePizza(){ std::cout
@Hanyamanusiabiasa
@Hanyamanusiabiasa 2 жыл бұрын
This is a new concept as a python developer!
@criminalx7099
@criminalx7099 2 жыл бұрын
well explained bro
@yamenzeadneh
@yamenzeadneh Ай бұрын
thanks Bro you saved me at the night before my exam
@ItzScale
@ItzScale Жыл бұрын
Can u pls explain to me why do we use void when we are accepting a string? Or am i stupid and it's not accepting, but returning?
@disabledfabrication
@disabledfabrication Жыл бұрын
the "void" keyword is a RETURN TYPE. In general, let's always assume that all methods have to return something, but in our case, we don't have to return anything, so we would put "void" instead of "int, boolean, double, etc..." Just assume that computer scientists who made this programming language decided to work on this way. To understand this, let's think of a real-life example. Imagine you have a friend's mom who loves to bake cookies. Usually, when your friend's mom bakes cookies, they give you some cookies to eat. But imagine one day your friend's mom tells you, "I'm going to bake some cookies, but I won't be giving you any." In this case, your friend's mom is not returning any cookies to you. In programming, it's similar. The "void" keyword is like your friend saying, "I'm not going to return anything." Instead of using specific types like numbers or true/false, we use "void" to show that the method doesn't need to give anything back. So, when you see "void" in a program, it means that the method doesn't have to return a value. This allows programmers to write methods that perform certain actions without worrying about producing a specific result.
@nguyenquochoa3117
@nguyenquochoa3117 Жыл бұрын
@@disabledfabrication this is a great explanation and good example, thank you i understand it
@FrederikWollert
@FrederikWollert 8 ай бұрын
I really like your C++ series. Keep it up. Please make more C++ Videos. So, let's defeat the KZbin algorithm.
@NgJunLiang-s8u
@NgJunLiang-s8u 9 ай бұрын
Don't understand why previous function "Here is your pizza" will not cout ? is cover already so why delete it for waste space??
@norscout3031
@norscout3031 2 ай бұрын
Thank you!
@yellowhellow-wi9gi
@yellowhellow-wi9gi 2 ай бұрын
thank you
@criminalx7099
@criminalx7099 2 жыл бұрын
well explained bro
C++ variable scope explained 🌎
4:23
Bro Code
Рет қаралды 12 М.
Operator Overloading Using Friend Functions | C++ Tutorial
15:04
Portfolio Courses
Рет қаралды 10 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
C++ search an array for an element 🔎
7:37
Bro Code
Рет қаралды 12 М.
OPERATORS and OPERATOR OVERLOADING in C++
12:44
The Cherno
Рет қаралды 384 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 335 М.
C++ user defined functions explained 📞
7:24
Bro Code
Рет қаралды 29 М.
How to split strings in C (strtok)
9:28
CodeVault
Рет қаралды 108 М.
Learn C++ With Me #20 - Functions
26:14
Tech With Tim
Рет қаралды 57 М.
C++ Programming Tutorial 93 - Operator Overloading == and +
8:00
Function Templates | C++ Tutorial
10:54
Portfolio Courses
Рет қаралды 8 М.
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 361 М.