Jump to content

Difference Between Method and Constructor


Recommended Posts

Technically the constructor is a method.

The big difference between a constructor and other methods is that you never call the constructor, it is called automatically when you instantiate the object.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...