Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Introduction to classes!*/
- #include <iostream>
- using namespace std;
- class FelixClass
- {
- public: //This means that anything you put after this you're able to put outside the class! Other word: "Acces specifier"
- void simpleFunction()
- {
- cout << "Random text :)" << endl;
- }
- };
- int main()
- {
- FelixClass felixObject; //Object is basically the key to acces and run stuff from classes!
- felixObject.simpleFunction();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement