继承方法和 public 方法有什么区别?

What is the difference between inherited methods and public methods?

我无法理解子class中从超class继承的方法与class中的public方法有何不同,后者可用于另一个 class。

请通过基本的 OOP 概念,您将了解其中的区别。 非常简短的回答可能是 public 您可以访问的方法,因为使用继承子类可以修改现有行为。