We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Classes
- Virtual Functions
- Discussions
Virtual Functions
Virtual Functions
Sort by
recency
|
446 Discussions
|
Please Login in order to post a comment
class Person {
public: string name; int age;
};
class Professor: public Person {
int publication; static int cur_id;
};
class Student:public Person {
int marks[6]; static int cur_id;
};
int Professor::cur_id = 0; int Student::cur_id = 0;
class Person { public: string name; int age;
};
class Professor: public Person { int publication; static int cur_id;
};
class Student:public Person { int marks[6]; static int cur_id;
};
int Professor::cur_id = 0; int Student::cur_id = 0;