From functional to object-oriented programming: a smooth transition for beginners

  • Authors:
  • Rudolf Berghammer;Frank Huch

  • Affiliations:
  • University of Kiel, Kiel, Germany;University of Kiel, Kiel, Germany

  • Venue:
  • Proceedings of the 2005 workshop on Functional and declarative programming in education
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Many Computer Science curricula at universities start programming with a functional programming language (for instance, SML, Haskell, Scheme) and later change to the imperative programming paradigm. For the latter usually the object-oriented programming language Java is used. However, this puts a burden on the students, since even the smallest Java program cannot be formulated without the notion of class and static and public method. In this paper we present an approach for changing from functional to object-oriented programming. Using (Standard) ML for the functional programming paradigm, it still prepares the decisive notions of object-orientation by specific constructs of this language. As experience at the University of Kiel has shown, this smoothes the transition and helps the students getting started with programming in the Java language.