Advertisement
Josif_tepe

Untitled

Dec 28th, 2023
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. class Student {
  5. public:
  6.     void funkcija(int x) {
  7.         cout << x << endl;
  8.     }
  9.     void funkcija(double x) {
  10.         cout << x << endl;
  11.     }
  12.     void funkcija(int x, int y) {
  13.         cout << x << " " << y << endl;
  14.     }
  15. };
  16. int main() {
  17.  
  18.     Student s;
  19.     s.funkcija(10, 20);
  20.    return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement