Do OO design principles apply to Python?

后端 未结 10 872
伪装坚强ぢ
伪装坚强ぢ 2021-01-30 11:19

It seems like many OO discussions use Java or C# as examples (e.g. Head First Design Patterns).

Do these patterns apply equally to Python? Or if I follow the design pat

10条回答
  •  春和景丽
    2021-01-30 11:56

    The use of Java or C# is probably due to the mainstream popularity of the language.

    But design principle and/or design patterns apply irrespective of the language you use. The implementation of the same design pattern in Python would obviously be different than in Java or C#.

提交回复
热议问题