Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,165,360 members, 7,860,979 topics. Date: Friday, 14 June 2024 at 08:08 PM

Multiple Inheritances In Java And Python - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Multiple Inheritances In Java And Python (494 Views)

AIDE-IDE For Java And C/C++ And AIDE for Web Worth It ? / Mobile App Developers Proficient In Java And Swift/objective C Needed Urgently / Java, Golang And Python Developers Needed Urgently (2) (3) (4)

(1) (Reply) (Go Down)

Multiple Inheritances In Java And Python by Arjunkumar09: 9:21am On Jun 30, 2022
Hello All, I am working on a freelance project which is based on python and I am good at java and I am learning python for this project. I want to know which programming language offers multiple inheritances. According to this post, Java can implement multiple inheritances partially through the usage of interfaces but not an idea about python? Can anyone tell me about python?
Re: Multiple Inheritances In Java And Python by Deicide: 11:31am On Jun 30, 2022
Python support multiple inheritance but usually python is not mostly used for OOP. Java doesn't support Multiple inheritance.

If you want a language that support multiple inheritance natively use C++
Re: Multiple Inheritances In Java And Python by Telegon: 2:39pm On Jun 30, 2022
Deicide:
Python support multiple inheritance but usually python is not mostly used for OOP. Java doesn't support Multiple inheritance.

If you want a language that support multiple inheritance natively use C++

Java does support multiple inheritance codedly with the implementation of interface
Re: Multiple Inheritances In Java And Python by Deicide: 3:18pm On Jun 30, 2022
Telegon:


Java does support multiple inheritance codedly with the implementation of interface
If you have used C++ you'll know that's not multiple Inheritance. That's why I didn't mention it.
Re: Multiple Inheritances In Java And Python by Telegon: 11:17pm On Jun 30, 2022
Deicide:
If you have used C++ you'll know that's not multiple Inheritance. That's why I didn't mention it.

Okay, got you
Re: Multiple Inheritances In Java And Python by satandeterrible: 3:07am On Jul 01, 2022
Python supports multiple inheritances but it's almost always a bad idea.
Multiple inheritances can be limiting and makes your design non-pythonic and inefficient.
Composition is almost always a better alternative.

(1) (Reply)

Camtasia Audio Issue Mac OS Ventura 13.0 / Wordpress Theme Developers Come In. / My Goal Of Earning $40k/month Before December 2023 Startup

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.