Skip to content

Python program with 'Rectangle' class initializing rectangle properties via a default constructor

Notifications You must be signed in to change notification settings

er-hiba/Rectangle_Properties_Default

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

This program exhibits the 'Rectangle' class, initializing rectangle properties with default values through a constructor. It includes methods to calculate perimeter, area, and to determine if the shape is a square.

Files

rectangle2.py : This file contains the definition of the Rectangle class.

main.py : This file creates an instance of the Rectangle class and use its methods.

Example

About

Python program with 'Rectangle' class initializing rectangle properties via a default constructor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages