Constructor
Java Constructor Constructor in Java is a special block of code used to create the instance of class which is invoked automatically when an object of the class is created. It has the same name as the class name and has no return type. Syntax : The first line of a constructor is a call […]