From 70c71ae6682f68de5087635695f17660f1b6d782 Mon Sep 17 00:00:00 2001 From: Aryan Goyal <73420647+iaryangoyal@users.noreply.github.com> Date: Sun, 12 Mar 2023 23:29:23 +0530 Subject: [PATCH] Create ARgs --- ARgs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ARgs diff --git a/ARgs b/ARgs new file mode 100644 index 0000000..7de1630 --- /dev/null +++ b/ARgs @@ -0,0 +1,15 @@ +from abc import * +class shape(metaclass = ABCMeta): + def printarea(self): + return 0 +class rectangle(shape): + type1 = "rectangle" + side = 4 + def __init__(self): + self.length = 6 + self.breadth = 7 + def printarea(self): + return self.length*self.breadth + +rect1 = rectangle() +print(rect1.printarea())