Differentiate between the following statements:
abc p = new abco;
abc p = new abc(5.7.9);
Answers
Answered by
3
Answer:
the first one abcp is wrong ... it's abc p
any one in the first one you declared the variable but haven't instantiated it ,while in itsecodn one you declared the variable then instantiated it with the keyboard newand initialized by adding value to it's constructor
Similar questions
Social Sciences,
5 months ago
Math,
5 months ago
Chemistry,
10 months ago
Math,
1 year ago
Math,
1 year ago