Back to search

University of Victoria (Canada)

Translating C++ to Java : resolution of multiple inheritance

Abstract

dc:description.abstract

Object-oriented programming methodology was born out of the need to manage the growing complexity of modem software. Among all languages, C++ has been the choice for many object-oriented projects for a long time. However, with the introduction of Java, the domination of the C++ language may soon be over. Java shares many concepts and features with C++, but it also does omit some complicated C++ features. In addition, Java has implemented some specific characteristics to fully support its design goals such as portability and simplicity. Due to the advantages of the Java language, more and more systems are being developed in Java. Many existing legacy systems, written m C++, have been or have been attempted to be converted to Java Mappmg these C++ codes to Java or integrating Java code with legacy C++ code presents a significant challenge. Among all the language differences, the inheritance system is one of the most complex features to be mapped in the conversion process. This thesis presents a study in migrating multiple inheritance between C++ and Java. It investigates and documents all feasible conversion methods by studying the inheritance principle and mapping selected pieces of C++ code segments to Java. To experiment with all these methods, a medium size C++ project Flying was translated to Java. All the difficulties encountered in this process were documented. At the same time, some alternative approaches were presented for automated translation. This thesis also provides general mapping techniques required for converting other language differences. It validates all mapping solutions and provides information gathered by converting the project Flying from C++ to Java.

Degree

thesis:*
Level thesis:degree_level
Master of Science M.Sc.
Department thesis:degree_department
Department of Computer Science
Year dc:date.issued
2000

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Wen, Tracy Hui

Rights

dc:rights
Statement dc:rights
  • Available to the World Wide Web

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1828/20074

Chain of custody

source
Harvested from
University of Victoria (Canada)
Base URL
dspace.library.uvic.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Wen, Tracy Hui. Translating C++ to Java : resolution of multiple inheritance. Master of Science M.Sc. thesis, 2000. https://hdl.handle.net/1828/20074