OOP: When should you use inheritance vs just importing for your new class? /u/Xanadukhan23 Python Education

as in

import module class classA: blah blah

vs

“` import module

class classA(module) def initself(): super.init

“`

submitted by /u/Xanadukhan23
[link] [comments]

​r/learnpython as in import module class classA: blah blah vs “` import module class classA(module) def initself(): super.init “` submitted by /u/Xanadukhan23 [link] [comments] 

as in

import module class classA: blah blah

vs

“` import module

class classA(module) def initself(): super.init

“`

submitted by /u/Xanadukhan23
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *