dbo: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)
|
dbo:wikiPageExternalLink
| |
dbo:wikiPageID
| |
dbo:wikiPageLength
|
- 7452 (xsd:nonNegativeInteger)
|
dbo:wikiPageRevisionID
| |
dbo:wikiPageWikiLink
| |
dbp:wikiPageUsesTemplate
| |
dcterms:subject
| |
gold:hypernym
| |
rdf:type
| |
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)
|
rdfs:label
|
- Method cascading (en)
- 方法级联调用 (zh)
|
owl:sameAs
| |
prov:wasDerivedFrom
| |
foaf:isPrimaryTopicOf
| |
is dbo:wikiPageWikiLink
of | |
is foaf:primaryTopic
of | |