For Daily Free Study Material Join wiredfaculty Whatsapp Group | Download Android App | Ncert Book Download
Sponsor Area
Define a class BOX in Python with following specificationsInstance Attributes- BoxID # Numeric value with a default value 101- Side # Numeric value with a default value 10- Area # Numeric value with a default value 0Methods:- 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