Computer Science, asked by nibinsundar888, 1 year ago

write a program to find the area of rectangle using constructor

Answers

Answered by Cheemaking
2
Constructors are the methods having the same name as that of the class and are automatically executed on defining an object. The main purpose of a constructor is to initialize a new object.


i hope help you
Answered by rohan2132
0

Answer:

Calculate area of rectangle using default constructor in java. ... by admin January 3, 2019 Java programs ... constructor created by compiler if user does not create a constructor in a class.

Similar questions