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 is the purpose of sprintf?

816


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1704


Why is a semicolon (;) put at the end of every program statement?

840


What is static identifier?

914


Why is this loop always executing once?

809


How to explain the final year project as a fresher please answer with sample project

718


What are the features of the c language?

848


What is a pointer and how it is initialized?

820


Explain what are the __date__ and __time__ preprocessor commands?

862


How do you determine the length of a string value that was stored in a variable?

865


explain what are actual arguments?

833


How to declare pointer variables?

903


What is the value of c?

774


Differentiate Source Codes from Object Codes

1148


What’s the special use of UNIONS?

876