Computer Science, asked by FriendlyAditya, 5 months ago

write a class program with class name rectangle , data type int length ,int breadth​

Answers

Answered by khushbu568
0

Answer:

follow me pls I am following you

Answered by Anonymous
1

When you compile this program, you will find that two class files have been created, one for Rectangle and one for RectangleArea. The Java compiler automatically puts each class into its own class file.

To run this program, you must execute RectangleArea class. This is because the main () method is in this RectangleArea class and not in Rectangle class.

Similar questions