Advertise with us

How to create Constructor in C ?

Posted by  Aaron Douglas
 1507  View(s)
Rate this:
Hi Expert,

I'm beginner in language (C++) . I'm have created some example for learning point of view. Can you tell me how to create constructor in C++ language? Please provide me line of code.

Your help is greatly appreciated.  
  1. Re: How to create Constructor in C ?

    Try as following:

    class myclass{
    myclass( );
    myclass::myclass( )
    cout<<"In constructor\n";

      Modified On Mar-30-2018 03:37:36 AM