Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++

Create class name student. The student class have name, address and average as a data members. The class have the following member functions:
 Parametrized constructor to initialize data members of the class for five students. // array of objects
 Member function Print () to print the student information in ascending order according to average field.
Write a main program to invoke member functions
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
9+2 =