方法名称交换 - 公共抽象或抽象公共 [英] Method name interchange - public abstract or abstract public

查看:71
本文介绍了方法名称交换 - 公共抽象或抽象公共的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近遇到了以下方法。我尝试使用谷歌搜索并做了一个例子,通过如下定义方法来看到差异;两者似乎都是一样的。但是,我需要知道它是否真的相同?

I recently came across the following methods. I tried googling and did an example to see the difference by defining the methods as follows; both seems to be the same. But, i need to know if it's really the same ?

public abstract void methodName();
abstract public void methodName();

注意: public abstract 已在上述两种方法中互换。

Note: public and abstracthas been interchanged in the above 2 methods.

推荐答案

它是一样的。别担心。两个类似的 abstract 方法声明。

It's the same. Don't worry. Two similar declarations of abstract method.

这篇关于方法名称交换 - 公共抽象或抽象公共的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆