Search⌘ K

Exercise 2: Students Average Marks

Explore how to create a Student class in C++ by implementing private data members and public member functions. Learn to write constructors, access mark values, and calculate the average of two marks, reinforcing your understanding of classes and inheritance.

Problem statement

Write a class Student that contains the following data members and member functions, and performs the following operations:

  • Private data members:

    • float ...