假设我们有:
class A ...
class B inherit A ...
f (a_a: A) ...
那么,你能写出类似下面的伪代码,而不使用临时变量吗?
-- `y` is an argument to B's constructor.
f (create B.make(y))
假设我们有:
class A ...
class B inherit A ...
f (a_a: A) ...
那么,你能写出类似下面的伪代码,而不使用临时变量吗?
-- `y` is an argument to B's constructor.
f (create B.make(y))