Introduction to Classes Example

// Classes001.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "iostream"
using namespace std;

class SlashClass{
public:
       void coolSaying(){
             cout << "Take me down to the Paradise city!!!" << endl;
       }
};

int _tmain(int argc, _TCHAR* argv[])
{
       SlashClass SlashObject;
       SlashObject.coolSaying();
       system("pause");
       return 0;
}





Share on Google Plus