Write a program having a base class Student with data member rollno and member functions getnum() to input rollno and putnum() to display rollno.

Do you have a question about this? This isn't a homeworkservice, you'll have to make an effort before you get some help. So show what code you have.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.