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

how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

0 Answers  


What is pass by reference in functions?

0 Answers  


Dont ansi function prototypes render lint obsolete?

0 Answers  


What is the difference between #include and #include 'file' ?

0 Answers  


What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }

7 Answers  






What is an example of structure?

0 Answers  


What is the most efficient way to count the number of bits which are set in a value?

4 Answers  


How can I access a memory located at certain address?

2 Answers   CSC,


how can I convert a string to a number?

0 Answers  


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

0 Answers  


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

0 Answers  


What the different types of arrays in c?

0 Answers  


Categories