Explain what?s happening in the first constructor: public
class c{ public c(string a) : this() {;}; public c() {;} }
How is this construct useful?

Answer Posted / vijaykumar

When constructor public c(string a) is called to construct
an object, it first calls the default constructor then the
initialisation procedures in public c(string a).

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using Unions?

867


can we implement multi-threads in c.

901


Is c procedural or functional?

799


What is difference between constant pointer and constant variable?

944


Is Exception handling possible in c language?

1809


What is the difference between far and near ?

948


What does #pragma once mean?

945


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

2203


Is linux written in c?

809


What is the right way to use errno?

847


What is your stream meaning?

876


What header files do I need in order to define the standard library functions I use?

775


Explain c preprocessor?

888


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

815


How can I manipulate strings of multibyte characters?

836