
JAVA OOP
Java OOP – Constructor
A constructor is a block of code that initializes newly created object. This is not a method because this doesn’t have a return type. But before you learn about constructors, make sure that you know about the methods. You can visit the articles of the Java Basics (Java Methods) tutorial. When we create a constructor, […]
August 7, 2020