In object-oriented programming, method cascading is syntax which allows multiple methods to be called on the same object. This is particularly applied in fluent interfaces. For example, in Dart, the cascade: a..b ..c; is equivalent to the individual calls: a.b;a.c; Method cascading is much less common than method chaining – it is found only in a handful of object-oriented languages, while chaining is very common. A form of cascading can be implemented using chaining, but this restricts the interface; see , below.
Attributes | Values |
---|
rdf:type
| |
rdfs:label
| - Method cascading (en)
- 方法级联调用 (zh)
|
rdfs:comment
| - In object-oriented programming, method cascading is syntax which allows multiple methods to be called on the same object. This is particularly applied in fluent interfaces. For example, in Dart, the cascade: a..b ..c; is equivalent to the individual calls: a.b;a.c; Method cascading is much less common than method chaining – it is found only in a handful of object-oriented languages, while chaining is very common. A form of cascading can be implemented using chaining, but this restricts the interface; see , below. (en)
- 方法级联调用(Method cascading)是面向对象编程语言中对同一个对象调用其多个方法时的一种语法糖。特别适用于实现流畅接口。 例如在Dart语言中: a..b ..c; 等价于单独调用: a.b;a.c; Visual Basic允许对同一个对象调用任意多次的方法或属性: With ExpressionThatReturnsAnObject .SomeFunction(42) .Property = valueEnd With With..End With块在Visual Basic中可以嵌套: With ExpressionThatReturnsAnObject .SomeFunction(42) .Property = value With .SubObject .SubProperty = otherValue .AnotherMethod(42) End WithEnd With (zh)
|
dcterms:subject
| |
Wikipage page ID
| |
Wikipage revision ID
| |
Link from a Wikipage to another Wikipage
| |
Link from a Wikipage to an external page
| |
sameAs
| |
dbp:wikiPageUsesTemplate
| |
has abstract
| - In object-oriented programming, method cascading is syntax which allows multiple methods to be called on the same object. This is particularly applied in fluent interfaces. For example, in Dart, the cascade: a..b ..c; is equivalent to the individual calls: a.b;a.c; Method cascading is much less common than method chaining – it is found only in a handful of object-oriented languages, while chaining is very common. A form of cascading can be implemented using chaining, but this restricts the interface; see , below. (en)
- 方法级联调用(Method cascading)是面向对象编程语言中对同一个对象调用其多个方法时的一种语法糖。特别适用于实现流畅接口。 例如在Dart语言中: a..b ..c; 等价于单独调用: a.b;a.c; Visual Basic允许对同一个对象调用任意多次的方法或属性: With ExpressionThatReturnsAnObject .SomeFunction(42) .Property = valueEnd With With..End With块在Visual Basic中可以嵌套: With ExpressionThatReturnsAnObject .SomeFunction(42) .Property = value With .SubObject .SubProperty = otherValue .AnotherMethod(42) End WithEnd With (zh)
|
gold:hypernym
| |
prov:wasDerivedFrom
| |
page length (characters) of wiki page
| |
foaf:isPrimaryTopicOf
| |
is Link from a Wikipage to another Wikipage
of | |
is foaf:primaryTopic
of | |