約106件1ページ目

日本語のみで絞り込む

6日前 -Static methods are often utility functions, such as functions to create or clone objects, whereas static properties are useful for caches, fixed ...

2016/10/23 -From my understanding, when you have static methods in classes, you can call that method without needing to instantiate the class.

Static class methods are defined on the class itself. You cannot call a static method on an object, only on the class. Example. class Car { constructor ...

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.

A static method in a class is a function that belongs to the class itself rather than to instances of the class. It can be called directly on the class ...

2025/3/30 -Static methods are ideal for utility functions, such as creating or cloning instances. Static fields are useful for storing caches, fixed ...

A.無名関数をそのままコンストラクタとして使っているのだと思いますが、出番があるかと言われると、まず無いかと思います。これといった用途も思いつきませんし、使っている人を見たことが無いです。 例えば...

A.自分は普段クラスベース言語をやらないので、質問者さんがどんなイメージでこのソースを書いたのかあまりわかりません でも、JSの「クラス」は普通のものと大きく違うと考えた方がいいです >このコード...

A.とくに「@public」っていうコメントの書き方があるワケじゃなく、 単にそのコードを作成した人が、 自分なりのルール、 またはその人が所属しているグループのルールで書いてるだけ。 Javasc...

2022/5/3 -Usually, static methods are used to implement functions that belong to the class as a whole, but not to any particular object of it. For ...

static = keyword that defines properties or methods that belong // to a class itself rather than the objects created // from that class ...

YouTubeBro Code

2020/5/14 -static methods are useful when you use private members. A static method will have access to the members whereas a normal function won't. In the ...

2024/9/9 -In JavaScript, static methods are a powerful feature of classes that allow you to define functions directly on the class itself rather than ...