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

Constructors and the creation of objects.

$
0
0
Creation of objects is done via the format
ClassName variableName = new ClassName();


But a constructor creates an instance of an object. This gets confusing. The construtor format is
public ClassName
. But it doesn't create any new object at all ?

My mind is boggled at the moment. Any clarification is greatly appreciated. :donatello:

Viewing all articles
Browse latest Browse all 51036

Trending Articles



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