Defining a Class without member fields and member function - C++ Class

C++ examples for Class:Class Creation

Introduction

A Class Definition

class Car
{

};

Creating a Car Variable

Demo Code

class Car/* w w  w.  ja v a 2s  .  co  m*/
{

};

int main(int argc, char* argv[])
{
    Car myCar;
    return 0;
}

Related Tutorials