Default constructor example in C++

Default constructor example in C++
/********************************************************************************************************
*************Designed and Developed by V2Geeks******************************************
********************************************************************************************************/

//Example of Default constructor
//Note: constructors are mainly used  for initialization purpose.

#include<iostream.h>
#include<conio.h>
 class  A {
 public:
  A()           //This is default constructor

    cout<<"Hello from A"        ;
  }
   void sum()
  {
    cout<<"Hello from sum()" ;
  }
  } ;
  void main()
   {
        clrscr();
        A objA ;        //Here A() called by itself
        objA.sum();
          getch();
    }
Reactions: