Is it possible to make a static object in a parent class that subclasses will have? Clarification:
abstract class DataPacket {
    public static boolean loaded = false;
    public abstract static boolean load();// Returns true if it loads. Returns false if already loaded
}
class DataPacket1 extends DataPacket {
    public static boolean load() {
        if (!loaded) {
            // Load data
            loaded = true;
            return loaded;
        }
        return false;
    }
}
class DataPacket2 extends DataPacket {
    public static boolean load() {
        if (!loaded) {
            // Load data
            loaded = true;
            return loaded;
        }
        return false;
    }
}
main() {
    DataPacket1.load();// returns true
    DataPacket1.load();// returns false
    DataPacket2.load();// returns true
}
Is it possible to do this or something similar?
 
     
     
    