Monday, October 14, 2013

Object-Oriented Programming and Recursion(Weel 5)

Object-Oriented Programming is a programming paradigm using "object" - data structures consisting of data fields and methods together with their interactions to design applications and computer programs. Instances and classes are objects. Why it is useful for computer scientists? Because It can greatly improve the success rate of software projects, reduce future maintenance costs and improve software portability and reliability.

Recursion mean that the function of its own call to themselves or subordinates in their own function calls a function to call their own. Why it is useful (or not) for computer scientists? Using recursion can reduce a lot lines of codes. We can slove a large problem by a smaller model. However, its running efficiency is very low.

1 comment:

  1. Huiyuan, here is something to think about: what are the disadvantages of OO programming?

    ReplyDelete