A constructor has no explicit return type,It is not implicitly inherited and it usually has different rules for scope modifiers.
Constructor will be automatically invoked when an object is created whereas method has to be called explicitly.
Constructor name should match with that of class
15 Million Students Helped!
Sign up to view the full answer