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



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

Answer / 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

More C Interview Questions

what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year

7 Answers   TCS,


write c program without semicolon

11 Answers   MindTech, TCS, Wipro,


Explain what is the advantage of a random access file?

0 Answers  


write a program of palindrome(madam=madam) using pointer?

5 Answers   L&T,


Explain the difference between null pointer and void pointer.

0 Answers   TCS,






WRITE A PROGRAM TO PRINT THE FOLLOWING OUTPUTS USING FOR LOOPS. A) * B) ***** *** * * ***** * * *****

2 Answers  


Explain what are its uses in c programming?

0 Answers  


What is volatile in c language?

2 Answers   HCL, TCS,


plz answer..... a program that reads non-negative integer and computes and prints its factorial

2 Answers  


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

0 Answers   TCS,


Can one function call another?

0 Answers  


Why c is called a mid level programming language?

0 Answers  


Categories