Why use constructors in programming when you can just use normal functions?

前端 未结 0 797
梦谈多话
梦谈多话 2020-12-06 14:17

I am trying to understand why constructors such as __init__() are used when you can just make a function within a class and use it as normal:

cla         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题