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.
別のクラスの静的メソッドからゲッターとセッターを使用すると、すべて問題ありませんが、静的コンテキストで使用する必要があるという警告が表示されます。したがって、ゲッターまたはセッターを使用しない場合、その警告は取り除かれますが、それでも何を使用する方がよいでしょうか?