C++ Programming Blog

 
 
 
#include<iostream.h>
#include<conio.h>
class c1
{
    public:
    c1()
    {
        cout<<\"Hello\"<<endl;
    }
    c1(int j)
    {
        for(int k=0;k<j;k++)
            cout<<k<<endl;
    }
};
main()
{
    clrscr();
    c1 l1;
    c1 l2(5);
}

 
 
Didn't find what you were looking for? Find more on Program of construction overloading