#include <iostream>
class Student{
private:
std::string name;
int rollNo;
public:
Student(const std::string name, int number) {
this->name = name;
this->rollNo = number;
}
std::string getName() {
return name;
}
int getRollNo() {
return rollNo;
}
};
class Test : public Student {};
Comments
Leave a comment