Last active
July 17, 2017 23:00
-
-
Save curtiswilkinson/ac10d549298653339b0ef1f5640edc86 to your computer and use it in GitHub Desktop.
Overloading in C++ Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class printTheThing { | |
public: | |
void print(int integerThing) { | |
cout << "This is an Int"; | |
} | |
void print(double floatThing) { | |
cout << "This is a Float"; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment