Some modern languages(Swift, Dart etc.. ) does not support 'protected'.
(某些现代语言(Swift,Dart等。)不支持“受保护”。)
Swift is a protocol-oriented language, but I've heard that Dart is a completely object-oriented language. (Swift是一种面向协议的语言,但是我听说Dart是一种完全面向对象的语言。)
Why aren't these modern languages ??supporting 'protected'?
(这些现代语言为什么不支持``受保护''?)
Do you only need 'private' and 'public' for complete object-oriented programming? (您只需要“私有”和“公共”来进行完整的面向对象编程?)
I think it's convenient to have an 'protected', and there are some data or interfaces that I want to pass from the parent class to the child class.
(我认为有一个“保护”是很方便的,并且有些数据或接口我想从父类传递给子类。)
Why some mordern languages remove the 'protected'? (为什么某些现代语言删除了“受保护的”?)
ask by ShutUpILoveYou translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…