Constructor in Java

CONSTRUCTOR: Constructor is a special method. It is used for initializing an object variables. It is called automatically when we create an object or when the class is initialized. Constructor cannot be static When a method as static, it means the method belongs to the class and not to a specific object. But the constructorContinue reading “Constructor in Java”

Design a site like this with WordPress.com
Get started