write a program to find the area of rectangle using constructor
Answers
Answered by
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
i hope help you
Answered by
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