欢迎来到易学考试网 易学考试官网
全部科目 > .NET开发工程师

单项选择题

已经定义了一个Season枚举,它有4个成员Spring、Summer、Autumn、Winter。现在需要定义一个名为currentSeason的Season枚举,并将其赋值为Spring,应使用下面哪段代码?()

    A.Season currentSeason=Spring;
    B.currentSeason=Spring;
    C.currentSeason=Season.Spring;
    D.Season currentSeason=Season.Spring;

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题