Object-oriented Information Systems

More on Classes

Unit 5

In object-oriented programming, everything revolves around classes.
Therefore, this unit will focus more on classes and provide knowledge in assigning variables using a constructor. Moreover, unit 5 describes the definition and signification of abstract classes and the modularity of Python. Finally, the inheritance, aggregation, and composition principles will be explained.

Outcomes

  • Summary of the learning outcomes

This unit aims to:

  • Create a Python program which uses a constructor and abstract class
  • Describe the concepts of polymorphism, aggregation and composition
  • Name variables according to the namespace within which they exist
  • Reflection

What exactly have I learnt and how?

In this unit, I learned how powerful object-oriented programming could be. The modularity of Python is very effective in case of code reusability. Classes can be used as modules to connect more modules. This way, a whole system can be built without creating new code. Furthermore, with inheritance, children's classes can inherit all the methods and attributes of the parent's class and add more to the class hierarchy. The Python course inheritance provided me with the best learning outcome for understanding the use of inheritance. Some insights of the course are attached in the notes sector below.

Contact Me