Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Student {
- public:
- void funkcija(int x) {
- cout << x << endl;
- }
- void funkcija(double x) {
- cout << x << endl;
- }
- void funkcija(int x, int y) {
- cout << x << " " << y << endl;
- }
- };
- int main() {
- Student s;
- s.funkcija(10, 20);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement