From the course: Programming Foundations: Object-Oriented Design

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

OOP support in different languages

OOP support in different languages - Python Tutorial

From the course: Programming Foundations: Object-Oriented Design

Start my 1-month free trial

OOP support in different languages

- Throughout this course, we've focussed on object-oriented design. The processes and techniques to create a system. And while everything we've covered can be applied to any object-oriented language, it's worthwhile to take a look at some of the differences between the most common ones. One of the main differences between languages is their support for inheritance. Many languages only allow single class inheritance, meaning, a derived class can only inherit from one class. However, C++ and Python support multiple inheritance, where derived class inherits more than one base class, although Ruby doesn't support multiple inheritance, it does have a feature called mixins that allow you to combine objects, though some people see this as more of a form of composition. And finally, JavaScript, which is informal compared to other object-oriented languages. Because it doesn't even use the idea of classes, instead, JavaScript uses prototypes to define its objects, which allows it to be more…

Contents