What is Constructor

Answer Posted / reet bansal

a constructor is a class mamber function in c++ and c# that
has the same name as the class itself.
the porpose of the constructor is to itialize all member
variables whe a oject of this class is created.any resourse
acquired such as memory or open files are typically
released in the class constructor.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define stl.

771


i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

1698


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

1879


What are the symptoms of stl?

601


please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html

1774






What are the different types of stl containers?

646


What is stl in oop?

675


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1970


Can we use stl in coding interviews?

1274


What is a list in c++ stl?

690


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

2498


What is a standard template library (stl)? What are the various types of stl containers?

667


What is stl in c++ with example?

632


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

1853


What is a standard template library (stl)?

638