正在加载图片...
Assignment Statement/ Expression A field or local variable takes the value of (becomes) something x The effect is instantaneous and lasting onwards but not back-dated Type must be matched e.g. birds and elephants are different k Implicit coercion(type conversion) may be done by the compiler e.g. for numeric types(see example later) K凶心 2008-20092a Michael Fung, CS&E, The Chinese University of HK2008-2009 2a Michael Fung, CS&E, The Chinese University of HK 20 Assignment Statement/ Expression A field or local variable ‘takes the value of’ (‘becomes’) something. The effect is instantaneous and lasting onwards, but not back-dated. Type MUST be matched. – e.g. birds and elephants are different Implicit coercion (type conversion) may be done by the compiler. – e.g. for numeric types (see example later)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有