310,644 views
35 votes
35 votes
1. Write Python code to implement the following:

Create a class named Circle that will inherit properties and methods from a class named
Ellipse, and you do not want to add any other properties or methods to the class.
2. Explain the purpose of inheritance. And then explain why the Circle class can inherit
from the Ellipse class.
3. Write Python code to define the Ellipse class with a reasonable number of properties and methods.

I have already answered the first two questions (included them to show what I am doing) but am struggling with the 3rd one. It is worded badly, I just need to make a working code using properties and methods for Ellipse. I don't have to do the code for all the parameters.

User Andrius Bentkus
by
3.0k points

2 Answers

21 votes
21 votes

Answer:

1. class Circle(Ellipse): pass 2. Inheritance is the practice of passing on private property, titles, obligations, qualifications, advantages, privileges, and commitments upon the demise of a person. The standards of inheritance contrast among social etc.

Step-by-step explanation:

User Gigs
by
2.7k points
29 votes
29 votes

Answer: no why huh hmmmmmmm

Step-by-step explanation:

User Paullth
by
2.6k points