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
What does stl stand for in basketball?
What are the various types of stl containers?
Is stl part of c++ standard?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2. please answer my question ....
What does stl mean in slang?
How does an stl file work?
Is stl open source?
What is stl in oop?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
What are the components of stl?
what is template and type convertion
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
What is stl in c++ with example?
How do I convert a stl file?