class House:
det init (self):
self, initial rent =
def find rent per person(self, num_of_persons):
return self. initial rent/nun of persons
def calculate maintenance cost (self, maint_percent=10):
return self. initial rent*((maint_percent+3)/200)
def get initial rent (self):
return self. initial rent
class TwoBHKHouse (House) :
def find rent per person (self, num_of_persons):
rent = super().get initial rent()+self.calculate maintenance costi)
return rent//num of persons
class ThreeBHKHouse (TwoBHKHouse):
def find rent per person (self, num_of_persons):
return 300+super().find rent per person (num of_persona)
house_obj ThreeBHKHouse (1)
print('Final rent:', house_obj.find rent_per_person (2))
print('Initial rent:',house_obj.get_initial_rent())
Answers
Answered by
0
Answer:
omg this much big question
Fill in the blanks :
Equatorial regions, polar regions and deserts are 'dash' populated.
plz answer fast who will answer I will mark as brainlist and thanks him
Similar questions
Computer Science,
1 month ago
Business Studies,
1 month ago
English,
1 month ago
Math,
3 months ago
Math,
10 months ago
Math,
10 months ago
Science,
10 months ago