Computer Science, asked by HAYATKUMBHER, 1 year ago

.What is a constructor? please tel me fast

Answers

Answered by Anonymous
0

A  constructor is a special method of a class or structure in object-oriented programming that initializes an object of that type. A constructor is an instance method that usually has the same name as the class, and can be used to set the values of the members of an object, either to default or to user-defined values.

Answered by nehalshekhar8
0

hey friend your answer is here

A constructor in Java is a special method that is used to initialize objects. The constructor is called when an object of a class is created.....

hope it helps you friend

plz follow me guy's..

Similar questions