Revise your constructor concept of java

what is constructor and constructor create new object but in this post we will cover almost everything about constructor including rules for constructor, constructor chaining, what is the need of private constructor and when compiler provide the default constructor.

Objects are constructed. You can’t make a new object without invoking a constructor.
In fact, you can’t make a new object without invoking not just the constructor of the object’s actual class type, but also the constructor of each of its superclasses.
Click here to read more

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s