While passing an attribute typed class as a parameter to a method, is it possible to access it without setters?

后端 未结 0 1710
忘了有多久
忘了有多久 2021-01-07 06:50

For example, let\'s say I have a base class:

package test;

public class Class1 {
    
    private int attribute1;
    private int attribute2;
    
    public         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题