Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,165,413 members, 7,861,159 topics. Date: Saturday, 15 June 2024 at 04:32 AM

Multiple Inheritances In Java And Python - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Multiple Inheritances In Java And Python (495 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)

Suggest How To Do This Pls / Data Analysis And Summarization Using Excel Pivot Table / Programming Challenge: Adding Time 12h:59m + 20h:53 In Your Programming Language

(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. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.