約116,000件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:6か月以内
  • 6日前 -This page introduces public static properties of classes, which include static methods, static accessors, and static fields. For private static features, see ...

    2026/6/23 -JavaScript Static Methods and Properties are defined on a class itself rather than its instances, and are accessed using the class name.

    6日前 -All static methods are added beforehand and can be accessed, although calling them may not behave as expected if they refer to fields below the current block.

    Protect internal data with hash-prefixed private fields and methods, and create constructor utility helpers with static methods and fields.

    YouTubeRecord10

    2026/7/30 -Static methods (static) belong to the class itself, not to instances, and are called on the class name. Fields can hold default values and, when prefixed with # ...

    2026/9/19 -You can also mark static members private with # : class Counter { static #count = 0 static next() { return ++Counter.#count } }. A leading underscore like ...

    2026/10/16 -A static function runs without an object, so it cannot use instance variables or self : score inside is_passing() is an error reported before the program runs.

    2026/10/22 -Class methods are also declared static and belong to the class. A static method can access only class members directly.

    2026/9/1 -For Java, I'd go with either private static methods or, if I notice groups of related abstractions, a private class. In Python or Clojure, we get away with even ...

    2026/8/9 -Static state is what a class can promise independently of any single object, and the same sharing that makes it useful is what makes it something to reason ...