Aim To write a program for demonstrating constructors. Theory A constructor is a special method which has the same name as class name and that is used to initialize the objects (fields of an object) of a class. A constructor has the following characteristics: Constructor has the same name as the class in which […]