C++ Strings


class jk201
{
 int i;           //data variable
 void display()         //Member Function
  { 
   cout<<"Inside Member Function";
  }
}; // Class ends here

int main()
{
 jk201 obj;  // Creatig jk201 class's object
 obj.display();  //Calling member function using class object
}

Share this article on