Computer Science - Object-Oriented Programming - Inheritance - Build the Hierarchy

Complete inheritance code. P1: 'Shape hierarchy' → class Shape: def area(self): pass; class Circle(___): [Shape] def __init__(self, r): self.r = r; def area(self): return 3.14 * self.r ** 2. P2: 'Call parent constructor' → class Employee(Person): def __init__(self, name, salary): ___.__init__(name)

Edodovivmagarwal
Computer Science - Object-Oriented Programming - Inheritance - Build the Hierarchy
Log in

Preparing your experience...

Loading scripts and resources

Comments (0)

0/5000

Comments are reviewed before appearing publicly.

About this Experience

Computer Science - Object-Oriented Programming - Inheritance - Build the Hierarchy

vivmagarwal
vivmagarwalJan 29, 2026

Description

Complete inheritance code. P1: 'Shape hierarchy' → class Shape: def area(self): pass; class Circle(___): [Shape] def __init__(self, r): self.r = r; def area(self): return 3.14 * self.r ** 2. P2: 'Call parent constructor' → class Employee(Person): def __init__(self, name, salary): ___.__init__(name)

Details

Computer ScienceObject-Oriented ProgrammingClass 10, Class 10, Grade 10

Engagement

20

Likes

0

Remixes

0

Comments