Advertisement
Josif_tepe

Untitled

Sep 4th, 2021
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. class student {
  6. private:
  7.     string name;
  8.     string surname;
  9.     int age;
  10. public:
  11.  
  12.     student(string _name = "josif", string _surname = "tepegjozov", int _age = 0) {
  13.         name = _name;
  14.         surname = _surname;
  15.         age = _age;
  16.     }
  17.     ~student() {
  18.       //destructor
  19.     }
  20.     void print() {
  21.         cout << name << " " << surname << " " << age << endl;
  22.     }
  23. };
  24. int main() {
  25.    
  26.     return 0;
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement