Create student class to store id, name and phone number. Derive this class as report to store id, name, phone number, mark1, mark2 and mark3. Write constructor, destructor and methods to take data and print data. Also write a method to print total mark.

Most of us can probably do that, but we are not in your classroom. Post whatever you have done to solve that problem and ask questions. The first things you need to do is listen in class (assuming you attended class at all), then study your textbook.

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.