A constructor provides a convenient way to initialize a newly created object at the time of its creation. It is…
November 17th, 2009
Constructors
No Comments, Java Questions, by Daisy Williams.If a class Student creates two student objects. Which of the following statements are true about its constructors? A: The…
November 10th, 2009
What will be the ouput of the following program?
No Comments, Java Facts, by Daisy Williams.class box { int height; int weight; box( int a, int b) { height=a; weight=b; System.out.println(height); System.out.println(weight); } } class…
November 2nd, 2009
What is a constructor?
1 Comment, Java Facts, by Daisy Williams.A constructor provides a convenient way to initialize a newly created object at the time of its creation. A constructor…