【单选题】【消耗次数:1】
对类中声明的变量,下列描述中正确的是( )
属于全局变量
只属于该类
属于该类,某些情况下也可被该类不同实例所共享
任何情况下都可被该类所有实例共享
参考答案:
复制
纠错
相关题目
【单选题】 对类中声明的变量,下列描述中正确的是( )
①  属于全局变量
②  只属于该类
③  属于该类,某些情况下也可被该类不同实例所共享
④  任何情况下都可被该类所有实例共享
【简答题】 类中定义的[填空],是允许施加于该类对象上的操作,是该类所有对象所共享的。
【判断题】 可以先声明结构体类型,再定义该类型的变量。
①  正确
②  错误
【单选题】 类的构造方法被自动调用执行的情况是在定义该类的()
①  成员函数时
②  数据成员时
③  对象时
④  友元函数时
【单选题】 类的构造函数被自动调用执行的情况是在定义该类的()
①  成员函数时
②  数据成员时
③  对象时
④  友元函数时
【判断题】 任何情况下,都应避免硬质护岸。
①  正确
②  错误
【单选题】 如果没有为一个类定义任何构造函数的情况下,下列描述正确的是( )
①  编译器总是自动创建一个不带参数的构造函数
②  这个类没有构造函数
③  这个类不需要构造函数
④  该类不能通过编译
【单选题】 如果没有为一个类定义任何构造函数的情况下,下列描述正确的是( )
①  编译器总是自动创建一个不带参数的构造函数
②  这个类没有构造函数
③  这个类不需要构造函数
④  该类不能通过编译
【单选题】 在下列情况下,注册会计师可被视为具有独立性的是
①  被审计单位为金融机构,项目组的注册会计师在该机构按正常程序开立了存款账户
②  参与鉴证业务的注册会计师具有律师资格,并同时担任被审计单位的法律顾问
③  被审计单位已连续两年积欠审计费用,至今尚未偿还,会计师事务所仍承接本年被审计单位审计业务
④  注册会计师向被审计单位大量购买其生产的产品,并享受特别优惠
【判断题】 当我们希望某些数据在内存中只有一份,并且可以被类的所有实例对象所共享,那么就将该属性声明成静态属性。
①  正确
②  错误
随机题目
【单选题】 —How many people are there in Changsha?—About six ______.
①  million
②  millions
③  millions of
【单选题】 6. --Its 9:45. --Yes, its __________.
①  fifteen from ten
②  a quarter to ten
③  fifteen past ten
④  a quarter past ten
【单选题】 Jack is now in______ .
①  the three grade
②  Grade Third
③  Grade Three
【单选题】 Nanjing is a city with many places of interest. ________ tourists come here every year.
①  Thousand of
②  Thousand
③  Thousands
④  Thousands of
【单选题】 1.—Howlongisthenewbridge?Doyouknow?—Yes.Itsabout______.
①  one thousand one hundred and eighty meters
②  one thousand and one hundred fifty meters
③  two thousands one hundred forty meters
④  two thousands seventy and three meters
【单选题】 8.--What canI do for you? --Id like to buy a book, _____ that was wriiten by Lu Xun.
①  which
②  one
③  but
④  all
【单选题】 3.Attheshop,theywantedtoshowmeallthedresses,butIwasinterestedonlyin_____inthewindow.
①  this
②  that
③  it
④  the one
【单选题】 9. Some of the wheat came from Canada. How about _______?
①  another
②  the others
③  the other
④  the rest
【单选题】 7. --Did______ of your parents come to attend the openingceremony? --_______ of them came.
①  None
②  Neither
③  either; Neither
④  both; None
【单选题】 2.—Daddy,whichofthesesmarthatsdoyoulikebestinthehatshop?—_____.Theyarebothexpensiveandlesswarm-keeping.
①  Either
②  Nothing
③  Neither
④  None