Quality is delighting customers
Most of the software testing company use fferent type of languages for development and testing. So most of the OOP languages support Constructors.
A constructor is a special type of method of a class in OOP which is used for initialing an object of that type. It is an instance method that has the same name as the class, and it can be used to set the values of the members of an object
Types of constructors
Parameterized Constructors: Parameterized Constructors takes at least one argument and termed as parameterized constructors
Example :: Example(int a, int b)
x = a;
y = b;
Default constructors: If a constructor is not diclared for an instantiable class, Java compiler inserts a default constructor into the code
Copy constructors: Like C++, Copy Constructor is also supported by Java. But, unlike C++, default copy constructor doesn’t created by Java ,if you don’t write your own.Copy constructors helps in defining the actions performed by the compiler while copying class objects.