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

Are comments included during the compilation stage and placed in the EXE file as well?

660


How can you invoke another program from within a C program?

609


Can I initialize unions?

578


Why is c still so popular?

602


What are conditional operators in C?

614






Is that possible to add pointers to each other?

883


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1483


Explain how can you determine the size of an allocated portion of memory?

608


What is the return type of sizeof?

579


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2026


How reliable are floating-point comparisons?

619


What is the difference between void main and main in c?

609


what is bit rate & baud rate? plz give wave forms

1506


What is scanf_s in c?

621


How can I delete a file?

618