What is C++?

hello

Hemant




what is c++???????

Replies

  • bhuthecoder
    bhuthecoder
    C++ is an "object oriented" programming language created by Bjarne Stroustrup and released in 1985. google search for more details
  • Kaustubh Katdare
    Kaustubh Katdare
    Dr. Stroustrup had answered questions asked by CEans in our Small Talk. Check it out: #-Link-Snipped-#
  • Bunty Kumar
    Bunty Kumar
    why we use constructor or destructor in c++ ?????????
  • Deepika Bansal
    Deepika Bansal
    Constructor is used to allocate the memory space to the object data members. It is also used to do some initializations. eg if we want to initially set the values of data members to some default values say zero, then constructor is used. Another use of constructor is that it is called immediately when the object is created and initialized. So if want some actions to perform at this time then we can use it inside constructor. For instance, if we want that whenever an object is created, we should ask for some values from the users. so we can do this step in the constructor.
    Constructors can be default constructor (with no parameters), parametrized constructor (with one or more parameter) and copy constructor (to copy one object to another). If we have not created any constructor inside the class definition, then the compiler automatically provides the default constructor to initialize values to zero.

    Similarly, destructor is used to de-allocate the memory location occupied by the object data members. It works exactly opposite to that of constructor.

    Also we can have one or more than one constructor in a class but we can have at the most only one destructor in the class.

You are reading an archived discussion.

Related Posts

About Nurture Talent Academy Nurture Talent Academy (India's 1st institute for training entrepreneurs) is India's 1st institute for training entrepreneurs and startups. Our objective is to enable 1000 startups to...
This Movie is releasing in May 2011. I can't wait to watch. Check out the trailer 😁 Pure Awesomeness [video=youtube;3jkMSZbBrO4]https://www.youtube.com/watch?v=3jkMSZbBrO4[/video]
😁 hello everyone, i am mahesh from ECE group. Hyderabad
We were covered on UTVi upon recommendation from on of the famous Indian authors - Rashmi Bansal. The videos is old and also shows old design of CE's front page....
ABSTRACT:- The accurate location of the accident spot is the key for the correct evaluation of a link between road and accident process and for right choice of improvement measures...