Can not understand this python inheritance example | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can not understand this python inheritance example

https://code.sololearn.com/cN6U2isR3XNT/?ref=app Program is about ->Class BankInfo for storing fname, lname, gender, address ->Class BankAccount for storing account number and amount ->Class saving and current have two method interest calculate, validate, view profile 1) In this code when we create object of saving and current class why we pass class bankinfo object 2) and the method view profile in saving and current class how this work Self.bankinfo.fname???

17th Mar 2020, 6:21 PM
Devang H Baroliya
Devang H Baroliya - avatar
0 Answers