Logo 
Search:

C++ Programming Articles

Submit Article
Home » Articles » C++ Programming » Homework HelpRSS Feeds

Program of construction overloading

Posted By: Hannah Campbell     Category: C++ Programming     Views: 4407

Write a program of construction overloading.

Code for Program of construction overloading in C++ Programming

#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);
}
  
Share: 


Didn't find what you were looking for? Find more on Program of construction overloading Or get search suggestion and latest updates.

Hannah Campbell
Hannah Campbell author of Program of construction overloading is from Toronto, Canada.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!