Which of the following statements are true about
constructors and methods?

1)A constructor has it's own name, a return type and is
invoked using the new operator.
2)A function has it's own name, a return type and is invoked
using the dot operator.
3)A constructor has the name of the class, no return type
and is invoked using the new operator.

Answer Posted / deepika

b

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

am a textile eng. frombut with major of my course including chemical eng, subjects, can i too apply to the co.?

1517


My system suddenly get off,when i try to power on then it does not work but when i open it and clean RAM and insert it again, it power on.but after some day same problem? please give the answer (i have also changed RAM it's new.)

1401


I am going to appear for ISRO written test on 26 th april 2009 .So kindly forward me sample previous question paper for ISRO for BE Computer Science . My mail id : jothychristiya@gmail.com

2098


Write a shell script to delete all files present in a directory “dir1”. Any error, if it occurs while carrying out this operation should be stored in a file errorlog

1589


WHERE CAN I GET SQL SERVER NOTES SOFT COPY?

1333






Derive the equation that links voltage, charge and capacitance.

712


if u r using bugzilla then it generates automatic bugids,while testing uhave got a bug then bug is represented through a bug id say bug1, then bug is assigned to developer he fixes a bug ,say the bug is fixed no error is got later after few regression cycles u have got the same bug but the bug is represented by diff id say bug2,tell me how do i come to know that it is the same bug that had occured previously but now it is represented by diff id

1421


write a c programme to count the characters words and lines in a text book

1316


compare the conditional operator with if-else-if statement.

1429


i cannot go to my computer to set up why?

1382


CSS corp interview process and placement papers

1495


An inversion is an array of numbers is any pair (i,j) such that iA[j]. What is the average number of inversions in an array of n distinct numbers? plz GIVE ME SOLUTION

1435


sir now i am studying B.Tech final year so now i am eligible for writing group 1 and 2 or not?

1232


what is the number of water, sand and cement required for moulding brick?

902


how to reuse an outdated laptop?

1567