Answers for "every class has a constructor ?"

0

every class has a constructor ?

Every class has a constructor whether it's a normal class or a abstract class. Constructors are not methods and they don't have any return type. Constructor name should match with class name . Constructor can use any access specifier, they can be declared as private also.
Posted by: Guest on August-10-2021

Browse Popular Code Answers by Language