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 are types of structure?

0 Answers  


Program to trim a given character from a string.

5 Answers   NetApp,


C language questions for civil engineering

0 Answers   Tech Mahindra,


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

0 Answers  


What is the output of the following progarm? #include<stdio.h> main( ) { int x,y=10; x=4; y=fact(x); printf(ā€œ%d\nā€,y); } unsigned int fact(int x) { return(x*fact(x-1)); } A. 24 B. 10 C. 4 D. none

2 Answers  






what is the difference between arrays and linked list

26 Answers   MAHINDRA, Tech Mahindra, Wipro,


int far *near * p; means

0 Answers   Honeywell,


What is the use of volatile?

0 Answers  


sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?

4 Answers   Subex,


what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }

6 Answers   Microsoft,


how to write palindrome program?

3 Answers  


What type is sizeof?

0 Answers  


Categories