'Pull members up one time intellij?
Suppose I have an abstract class called Data:
public abstract class Data{
}
And 2 derived classes Data1 and Data2.
public Data1 extends Data{
private int id;
private String name;
private int value;
}
And
public Data2 extends Data{
private int id;
private String name;
private String category;
}
Is there a way in intellij to pull id, name members up from both Data1, Data2 classes into Data class in one time operation without going into each class?
Solution 1:[1]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | cng.buff |