`
hacker_zxf
  • 浏览: 143836 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

case

阅读更多
public abstract class Test {

    private String test1 = getTest1();

    public void test() {
        System.out.println(test1);
    }

    protected abstract String getTest1();
}


public class Test2 extends Test {

    public void show() {
        this.test();
    }

    public static void main(String... strings) {
        Test2 test2 = new Test2();
        test2.show();
    }

    @Override
    protected String getTest1() {
        // TODO Auto-generated method stub
        return "test";
    }

}

結果:
test



public enum Test3 {
    TEST33("123", "456");

    final private String name;
    private String       value;

    private Test3(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public static void main(String... strings) {
        System.out.println(Test3.TEST33.name);
        System.out.println(Test3.TEST33.value);
    }
}

分享到:
评论

相关推荐

    CASE工具的种类及应用特点

    一大批优秀的软件开发工具如雨后春笋般的涌现出来,而CASE工具就是这其中的代表。它将软件开发过程中各过程中的工作通过其集成的平台共享,从而解决了重复编码、代码混乱,目标进度不清等缺点。不仅提高了软件开发的...

    mysql存储过程之case语句用法实例详解

    本文实例讲述了mysql存储过程之case语句用法。分享给大家供大家参考,具体如下: 除了if语句,mysql提供了一个替代的条件语句CASE。 mysql的 CASE语句使代码更加可读和高效。废话不多说,我们先来看下简单case语句的...

    case when和sum case when 写法及拼接字段

    1 case when 写法 2 sum case when 用法 3 select 拼接字段 示例如下: when 2 then 'C' else 'D' end ) as '类型',count(*) as '数量' from table group by orderType

    测试用例(Test Case

    测试用例(Test Case)是将软件测试的行为活动做一个 测试用例 测试用例 科学化的组织归纳,目的是能够将软件测试的行为转化成可管理的模式;同时测试用例也是将测试具体量化的方法之一,不同类别的软件,测试用例是...

    软件工程Case工具.doc

    (6)了解和熟悉软件Rational Rose 2、实验内容 背景知识 2.1 软件工程 CASE 工具 软件开发环境是面向软件整个生存周期,为支持各个阶段的需要,在基本硬件和宿主 软件的基础上使用的一组软件系统,也称作软件工程...

    Verilog语言中case语句详解及优化

    Verilog语言中case语句详解及优化 详细讲解了case语句的原理、实现。并说明了如何合理使用case从而实现程序的优化配置

    面向主体的CASE工具和环境

    首先,现阶段人们已经提出了数十种面向主体的CASE环境,因此如何评价已有的面向主体CASE环境,如何帮助软件开发人员从大量、异构和多样化的面向主体CASE环境中选择“合适和有效”的面向主体CASE环境来辅助他们的工程...

    case设计及测试规范、测试用例框架模版

    case如何设计全面? case设计模版:功能检查、交叉模块检查、接口测试、异常情况检查、兼容性检查

    matlab.matpower.zip,case9-14-30-118.m

    matlab使用matpower仿真计算最优潮流,最常用case9-case14-case30-case118总线原始.m文件

    FasTrak_HBS_Case_Study_Handbook_2018_Edition.pdf

    哈佛商学院2018case book Cases are real-life business problems, usually complex or ambiguous enough that a management team engages valuable consulting support to solve them. We hope you will ...

    douding_LBS_Case_Book2017.pdf

    伦敦商学院2017年case book Cases are real-life business problems, usually complex or ambiguous enough that a management team engages valuable consulting support to solve them. We hope you will ...

    python中Switch/Case实现的示例代码

    学习Python过程中,发现没有switch-case,过去写C习惯用Switch/Case语句,官方文档说通过if-elif实现。所以不妨自己来实现Switch/Case功能。 使用if…elif…elif…else 实现switch/case 可以使用if…elif…elif.....

    实验1_软件工程Case工具

    好有爱,软件工程的人赶紧下下,Case工具

    英文原版-Case Files Cardiology 1st Edition

    ENHANCE YOUR CRITICAL THINKING SKILLS AND IMPROVE PATIENT CARE WITH THIS CONCISE CASE-BASED REVIEWExperience with clinical cases is key to mastering the art and science of medicine and ultimately to ...

    case 后面可以加判断句吗?

    switch(ParseInt(n/10)) { case 1: output=document.write("不及格"); break;

    高通Case注意事项1

    高通Case注意事项标题标题中需要包括以下内容:项目名模块名可能涉及的文件(如果不确定可以不写)问题描述Customer tracking numberA. 如

    测试用例 (Test case)例模版

    测试用例 (Test case) 用例名称 用例编号 重要程度 用例设计人 代码负责人 测试人 测试时间 English version Title Case ID Level Designer Developer Tester Time 测试场景描述 (Case scenario) 场景...

    IEEE33节点数据(case33bw.m)

    IEEE33节点数据(case33bw.m)

    Exercise #1 ATM Use-case diagram

    construct the Automatic Teller Machine with the help of ‘Use-case diagram’, where you show the following things: Customer uses ATM machine:-  for balance inquiry  Cash Deposit/withdrawal/...

    Business Case Analysis with R

    This tutorial teaches you how to use the statistical programming language R to develop a business case simulation and analysis. It presents a methodology for conducting business case analysis that ...

Global site tag (gtag.js) - Google Analytics