Please use this identifier to cite or link to this item:
http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/43311| Title: | 可繼承的JAVA列舉 Inheritable Java Enumeration |
| Authors: | Chi-Chia Yang 楊騏嘉 |
| Advisor: | 陳俊良(Chuen-Liang Chen) |
| Keyword: | 列舉,JAVA,繼承,編譯器,class,Enum,物件, enumeration,JAVA,inheritance,compiler,class,Enum,instance, |
| Publication Year : | 2009 |
| Degree: | 碩士 |
| Abstract: | Java 1.5加入許多新功能,包含enumeration。Java內部將enumeration做成class的形式,使得其constants就為instances,有著更強大的支援,附帶有variable、method等功能,不再只是單純的數字。但在class的條件之下,enumeration卻不行使用繼承的用法,以致與Java的核心概念有所衝突。因此本論文試著提出可繼承的Java enumeration,讓enumeration更為彈性,並且可在不更動Virtual Machine的前提之下能夠執行。 Java 1.5 adds many new features, including enumeration. It implements enumeration as class. It translates enumeration constants into class instances, so that an enumeration constant is not a pure number. Now, enumeration constant has variables and methods, and it is more powerful. However, inheritance between enumeration is not allowed in Java 1.5.This violates the kernel principle of object-oriented concept. In this thesis, we try to resolve this problem. Under the condition of not changing Java virtual machine, we try to make Java enumeration be inheritable. |
| URI: | http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/43311 |
| Fulltext Rights: | 有償授權 |
| Appears in Collections: | 資訊工程學系 |
Files in This Item:
| File | Size | Format | |
|---|---|---|---|
| ntu-98-1.pdf Restricted Access | 1.29 MB | Adobe PDF |
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.
