To write a C++ program to display the student details using classes and object as array. Algorithm:
Step 1: Create a class as student.
Step 2: Declare the data members rollno, name, mark1, mark2, mark3, total and average.
Step 3: Declare the member functions as getdata() and displaydata().
getdata() method used to get the student details.
3.2 displaydata() method used to display the student details.
Step 4: In the main, create an object array for the student class using the following