What is Constructor

Answer Posted / narayan prajapati

Constructor is What?
Example(Constructing Builings Or in our programing Builing
Programs)
1.It Should Have Same Class Name eg.(Fun)& Function Name eg.
(Fun)And Pass Suitable Parameters
2.Its Function Doesn't Return Value.
3.When Object is Initialize,it Directly Call.
4.constructor Works First & then When main Function work
completed the Destructor Come to work,And Clear the
Previous Data.
5.while Initializing parameters in main function,we Should
take Care Of Constructor Function Parameters eg.(If 2
parameters Are pass in constructor function then is
necessary to pass 2 parameters in main function,if not it
Will Send An Error!)

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stl in oop?

681


Who wrote stl?

682


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

1646


What is stl stand for?

742


sir please send me bpcl previous question papers

1961






What is a stl vector?

628


What two types of containers does the stl provide?

573


Is stl part of c++ standard?

645


Name the different types of stl containers.

695


write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

2504


Who created stl?

656


What does stl mean in slang?

652


help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase

1885


Explain stl.

907


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

1897