CSC/ECE 517 Fall 2011/ch1 1i cl

From Expertiza_Wiki
Revision as of 05:20, 7 September 2011 by Yxue4 (talk | contribs) (Created page with "= Introduction = In [http://en.wikipedia.org/wiki/Object-oriented_programming Object-oriented languages], method is a subroutine which associates with the instances of the class ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

In Object-oriented languages, method is a subroutine which associates with the instances of the class to define the specific behavior of this class. In the inheritance of these languages, methods reimplementation is essential because descendant class inherited from the ancestor class in which properties and method have been defined to some extent. With the method reimplementation, coding can be more efficient and simple without rewriting the same code again and agian. However, in different OO languages, the ways of acquiring or allowing method reimplementation are significantly different. In this article, we are going to introduce these differences and provide code for better understanding.