Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class student {
- private:
- string name;
- string surname;
- int age;
- public:
- student(string _name = "josif", string _surname = "tepegjozov", int _age = 0) {
- name = _name;
- surname = _surname;
- age = _age;
- }
- ~student() {
- //destructor
- }
- void print() {
- cout << name << " " << surname << " " << age << endl;
- }
- };
- int main() {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement