Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Constructor and Method differences in use.

$
0
0
This is copying an object with a constructor?


Inventory i3 = new Inventory(i2);
	System.out.println(i3);




What would copying using a method look like if thats true?

Can you explain and give me an example of what to do between creating objects that copy using either the copy constructor or copy method.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>