Jump to content

Can you say that recursion is a property of oop?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
MiyamotoSamurai

MiyamotoSamurai

    Learning Programmer

  • Members
  • PipPipPip
  • 35 posts
Can you say that recursion is a property of oop?

Inheritance and encapsulation are, but recursion?

Can we just say that oop supports recursion, but that it is not an oop property?

#2
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
Recursion and OOP? No way, you do not need to be doing OOP in order to have recursion, recursion happens in the function/method not in the class, I mean it can happen in the class but it happens at the function/method level.

#3
MiyamotoSamurai

MiyamotoSamurai

    Learning Programmer

  • Members
  • PipPipPip
  • 35 posts
well said :)

thank you