Answer Posted / jeetesh
constructor is nothing but name of class name of the
constructor should be same
Main goal of constructor: is to initialize states of
an objects value or attributes values
while creating object to the class automatically
constructor will call
constructor in java:
1 name of constructor and name of class should be same
2 constructor it will call while
Creating object
3 constructor does not have return value
4 constructor cannot be final
5 constructors cannot be static if it is static means we
cannot create object to static
6 constructor cannot be inherit
7 constructor cannot be abstract
8 constructor first statement should be either super()
calling or this() calling
9 Overriding is not possible in case of constructor
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
95) func(a,b) int a,b; { return( a= (a==b) ); } main() { int process(),func(); printf("The value of process is %d ! ",process(func,3,6)); } process(pf,val1,val2) int (*pf) (); int val1,val2; { return((*pf) (val1,val2)); please help me in detail ....with flowchart
Do you have any tips for using 3G phones?
what are the artifacts in coding phase in SDLC????
Guys! I coplted 10th with 80% and +2 with 64% now am dng c.s.e b.tech...i want to go abroad for higher studies i want to write tofel...plZ GIVE UR SUGGESTIONS!
what is the PID controller?
describe what is const pointer and why do we need it?
Why do windmills never appear stationary?
how strcpy usingrecursive function
Hi, what is the meaning of DOCUMENTUM,how and what testers have to do with it?
what is the effect of low frequency(say 48Hz) on TUrbo- Generator set when running for a prolonged period?
Please state briefly the reasons why you think you are an outstanding candidate for this job
Whet is KCFT and difference between CFM and KCFT
what are basic step involved in embedded system software development?
What is the most important thing to know about marine engineering?
please send aptitude test papers for reference with answers