java类中方法定义顺序

1、公共方法;

2、保护方法;

3、私有方法;

4、getter、setter

posted @ 2023-07-20 16:13  青牛梦旅行  阅读(38)  评论(0)    收藏  举报