What do the keywords virtual and override do in C++?
What do the keywords virtual and override do in C++?
Create a class called Student. It should have variables name, a dynamically allocated array
of grades (strings), and a RAM number assigned randomly (int between 1,000 and 9,999).
A. Create student1 in main and let the user put in 3 grades using functions from Student.
B. Create an array of 3 students and let them be instantiated to the default settings by
the default constructor.
C. Create a function/hack in your Student class called Doomsday (use a bool to trigger
it). If the function is called and the bool is set to 1, it should erase that objects information and
set it to 0, null, etc. Show Doomsday’ execution by example in main.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps