struct Foo final {}; class Base {}; class Derived final : public Base{};. 在類別後面加上final 後,等同於告訴編譯器 這個類別不該再被繼承複寫 ...
確定! 回上一頁