Good Morning
04:00 am

Sponsor Area

Sponsor Area

Question is

Define a class BOX in Python with following specifications

Instance Attributes

- BoxID # Numeric value with a default value 101
- Side   # Numeric value with a default value 10
- Area  # Numeric value with a default value 0

Methods:

- ExecArea() # Method to calculate Area as
                  # Side * Side
- NewBox() # Method to allow user to enter values of
                # BoxID and Side. It should also
               # Call ExecArea Method
- ViewBox() # Method to display all the Attributes

Mock Test Series

Sponsor Area

Sponsor Area

NCERT Book Store

NCERT Sample Papers

Entrance Exams Preparation