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 scope of static variable in c?

537


Explain what is the benefit of using #define to declare a constant?

614


What is modifier & how many types of modifiers available in c?

614


What is the symbol indicated the c-preprocessor?

700


Is file a keyword in c?

505






What is the equivalent code of the following statement in WHILE LOOP format?

772


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1594


What is the difference between mpi and openmp?

738


What is dynamic dispatch in c++?

563


how many errors in c explain deply

1633


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

768


write a proram to reverse the string using switch case?

2473


Describe newline escape sequence with a sample program?

660


How to declare pointer variables?

688


What is 1f in c?

1844