Write a program in python: Create a class Box and found area of rectangle also use function definition inside class


  • Define a class
  • Define method to set value
  • Define init method to setvalue
  • Define function to return area

Class Varible : 2
Length of Box is: 4
Wid of Box is:  2
Area of Box:  8
Class variable : 3

0 Comments