KEMBAR78
object oriented programming(PYTHON) | PPTX
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)
object oriented programming(PYTHON)

Editor's Notes

  • #5 For eg: Let's assume, we need to replicate a Zoo in a program. We will list out all the animals and create functions for them or we can make a single function and handle all animals in that function. Now, animals have distinct behaviors along with some common behaviors and all of them have some pattern. All animals eat, sleep, walk, make noise and run but their patterns are different. Also, animals have distinct properties like Elephants have trunk, Rhinos have horns etc. To address this, we need to pass each and every property as a parameter to the function so that function knows what to do for which animal combination. Even if we created separate functions for each animal to reduce the complexity, it would still be difficult to complete the process without any glitches(unexpected fault). So, there is need for an approach which is more realistic.
  • #6 As we came across the drawbacks of procedure oriented programming, let's learn how oop fixed them and gave us a much simpler and at the same time a robust way to programming which is still in use.