Some Effective Oop Examples
نویسنده
چکیده
This paper will present two examples that we feel can convince students of the benefits of object-oriented design and spur their interest. Both examples are well-known and fun to program. We first describe a sorting animation. In this project we will ask students to implement animation of various sorting algorithms, and for each sorting algorithm the user can choose one of two methods of animation. We will show that polymorphism and multiple inheritances would be most natural in the implementation design.
منابع مشابه
Using the Object Oriented Paradigm to Model Context in Computer Go
In this paper, we investigate the use of contextual knowledge in order to simplify knowledge representation in very complex domains and systems. In the case of a complex domain like the game of Go, we show that context has several types. We give some examples of temporal, goal, spatial and global contexts. We describe how Go playing programs represent and use these contexts in the ObjectOriente...
متن کاملFunctional Programming at Work in Object-Oriented Programming
This paper is a synthesis about why and how some functional programming (FP) can be helpful from a program design point-of-view within mainstream object-oriented programming (OOP). We first introduce criteria to ensure that FP-oriented features give an effective functional/method granularity design level within OOP. Next, we list up and discuss the general techniques and design consequences of ...
متن کاملSubclassing errors, OOP, and practically checkable rules to prevent them
This paper considers an example of Object-Oriented Programming (OOP) leading to subtle errors that break separation of interface and implementations. A comprehensive principle that guards against such errors is undecidable. The paper introduces a set of mechanically verifiable rules that prevent these insidious problems. Although the rules seem restrictive, they are powerful and expressive, as ...
متن کاملAn Overview of Nominal-Typing versus Structural-Typing in Object-Oriented Programming
NOOP [4, 6, 7, 8] is a mathematical model of nominally-typed OOP that proves the identification of inheritance and subtyping in mainstream nominally-typed OO programming languages and the validity of this identification [11]. This report gives an overview of the main notions in OOP relevant to constructing a mathematical model of OOP such as NOOP. The emphasis in this report is on defining nomi...
متن کاملAprendendo Programacao Orientada a Objetos com uma Abordagem Ludica Baseada em Greenfoot e Robocode
One the major challenges in undergraduate computing programs is the learning of object-oriented programming (OOP). This paradigm has a variety of concepts with an abstraction level usually high for most beginners, even the ones who already code in an imperative language. Furthermore, transitioning from imperative programming to OOP is a complex issue, with various inappropriate side effects. A ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2006