Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class GradeBook
- {
- private:
- int pi(int);
- public:
- inline int displaymessage(int);
- };
- int GradeBook::pi(int a)
- {
- return a+=5;
- }
- inline int GradeBook::displaymessage(int a)
- {
- return pi(a);
- }
- int main()
- {
- int a = 10;
- GradeBook wks;
- cout << wks.displaymessage(a) << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment