Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
In advance, why don't interfaces have the ability to create class-side methods? This question was found in my lecture notes.
我猜你指的是类方法(静态方法)。不支持接口中的静态方法没有固定的技术原因。可能只是因为没有令人信服的理由而不允许使用静态方法;
有关更多信息,您可以查看这些答案 link1 , link2