Different access specifiers in a class


Question 1:

Make a class String which holds a string value. Overload ++ operator which converts the characters of string to uppercase (toupper() library function of “ctype.h” can be employed).

Question 2:

What do you understand by the term virtual function? Describe it with an illustration.

Question 3:

Illustrate out different access specifiers in a class.

Question 4:

Illustrate a STUDENT class with USN, Name, and Marks in three tests of subject. Declare an array of ten STUDENT objects. By using proper functions, find the average of two better marks for each student. Print out the USN, Name and the average marks of the entire student.

Question 5:

Write down a C++ program to make a template function for quick sort and show sorting of integers.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Different access specifiers in a class
Reference No:- TGS09910

Expected delivery within 24 Hours