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
What is the purpose of sprintf?
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
Why is a semicolon (;) put at the end of every program statement?
What is static identifier?
Why is this loop always executing once?
How to explain the final year project as a fresher please answer with sample project
What are the features of the c language?
What is a pointer and how it is initialized?
Explain what are the __date__ and __time__ preprocessor commands?
How do you determine the length of a string value that was stored in a variable?
explain what are actual arguments?
How to declare pointer variables?
What is the value of c?
Differentiate Source Codes from Object Codes
What’s the special use of UNIONS?