Creation of objects is done via the format
But a constructor creates an instance of an object. This gets confusing. The construtor format is
My mind is boggled at the moment. Any clarification is greatly appreciated.
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.