Friday, 29 May 2015

Defining the Class in C++

Class is defined in C++ programming using keyword class followed by identifier(name of class). Body of class is defined inside curly brackets an terminated by semicolon at the end in similar way as structure.
class class_name
   {
   // some data
   // some functions
   };






0 comments:

Post a Comment