class Spaceship { public: template Spaceship():shields(100) { } int shields; };