Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
static名前空間スコープでは「内部リンク」を意味することを私は知っています。ここで、次のコードについて考えてみます。
static
static class Foo {} foo;
、またはその両方にstatic適用されますか?Foofoo
Foo
foo
class Foo {}foo変数のタイプを示します。静的staticにします。foo
class Foo {}
これは、クラス定義の後に宣言された変数に適用されます。
C ++では、のようなものはありませんstatic class。staticオブジェクトとstatic関数だけがあります。
static class