Question: Below statements point out two words : Specifer and Storage Classes. Why public is access specifier and static is storage-class specifier ,what is specifer ?
Below statements point out two words : Specifer and Storage Classes. Why public is access specifier and static is storage-class specifier ,what is "specifer" ? what is storage class ?(confuse to class -object )


tor ums ude red tot Recall that the function main is always called automatically when you execute a pro gram. Most functions do not get called automatically. As you'll soon see, you must call member function displayMessage explicitly to tell it to perform its task. Line 10 contains the keyword public, which is an access specifier. Lines 1215 define member function displayMessage. This member function appears after access specifier public: to indicate that the function is available to the public--that is, it can be called Lother functions in the program (such as main) and by members tor ums ude red tot Recall that the function main is always called automatically when you execute a pro gram. Most functions do not get called automatically. As you'll soon see, you must call member function displayMessage explicitly to tell it to perform its task. Line 10 contains the keyword public, which is an access specifier. Lines 1215 define member function displayMessage. This member function appears after access specifier public: to indicate that the function is available to the public--that is, it can be called Lother functions in the program (such as main) and by members // function that displays a welcome message to the GradeBool 6 7 8 // GradeBook class definition class GradeBook { public: 9 -- 10 11 12 13 void displayMessage() { cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
