Advertisement
Felanpro

Classes (Knowledge)

Nov 21st, 2015
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class FelixClass
  5. {
  6.              public:
  7.              
  8.              void simpleFunction1()
  9.              {
  10.              cout << "Hey this is function 1" << endl;
  11.              }
  12.              
  13.              void simpleFunction2()
  14.              {
  15.              cout << "Hey this is function 2" << endl;
  16.              }
  17.       };
  18.      
  19. int main()
  20. {
  21.     FelixClass felixObject;
  22.     felixObject.simpleFunction1();
  23.     system("pause");
  24.    
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement