This post originated from an RSS feed registered with Java Buzz
by Javin Paul.
Original Post: What is Constructor overloading in Java with Example
Feed Title: Javarevisited Blog
Feed URL: http://javarevisited.blogspot.com/feeds/posts/default?alt=rss
Feed Description: Blog on Java, Unix, Linux, FIX Protocol technology. I share my experience as tutorial, article, interview questions, programming, design etc.
Constructor overloading in java allows to have more than one constructor inside one Class. in last article we havediscussed about method overloading and overriding and constructor overloading is not much different than methodoverloading. Just like in case of method overloading you have multiple methods with same name but differentsignature, in Constructor overloading you have multiple constructor with different signature with only differencethat Constructor doesn't have return type in Java. Those constructor will be called as overloaded constructor . Overloading is also another form of polymorphism in Java which allows to have multiple constructor with different name in one Class in java.