Skip to content

Instantly share code, notes, and snippets.

@curtiswilkinson
Last active July 17, 2017 23:00
Show Gist options
  • Save curtiswilkinson/ac10d549298653339b0ef1f5640edc86 to your computer and use it in GitHub Desktop.
Save curtiswilkinson/ac10d549298653339b0ef1f5640edc86 to your computer and use it in GitHub Desktop.
Overloading in C++ Example
#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