Posts

Showing posts with the label cpp basics

Function Overloading In C++ | Function Overloading Explained With Real Life Examples | Function Overloading In OOPs

Image
 Function Overloading In C++  What is function overloading? Function overloading means creating duplicates of the same function but it will be different from that function. WHAT ??. I know you don't understand. So let me explain this concept by a real-life example. So think about your mother, your mother is a woman but she plays many roles like sometimes she is your mother, sometimes she plays the role of wife, sometimes she plays the role of daughter, etc. So your mom is overloading to the different roles she overloads different roles every time. So same function overloading means to overload properties of different functions. And here is the official definition of function overloading -  Function overloading  is a feature in C++ where two or more  functions  can have the same name but different parameters. When a  function  name is  overloaded  with different jobs it is called  Function Overloading . Here in C++ Function overloadi...

Basic Of Of C++ Programming || Data Types, cout, cin, If-else, for, while in cpp | Math Table Generator In cpp

 Basic Of Of C++ Programming  Starter Template Of C++ : #include   < iostream >   //HEADER FILE using   namespace   std ; int   main ()  //MAIN FUNCTION WHICH RETURN TYPE IS INTEGER {     //WRITE STUFF HERE      return   0 ; } Data Types in C++: /* Data Type   Meaning                  Size (in Bytes) int         Integer                    2 or 4 float      Floating-point                4 double     Double Floating-point    ...