₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,060 members, 8,420,091 topics. Date: Thursday, 04 June 2026 at 11:12 AM

Toggle theme

Multiple Inheritances In Java And Python - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingMultiple Inheritances In Java And Python (630 Views)

1 Reply (Go Down)

Multiple Inheritances In Java And Python by Arjunkumar09(op): 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:
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

Which Programming Language Is The Best Between Java And Python ? - ShomekNeed Help In JavaQuestion On Regular Expressions In Java234

Seeking Expert AdviceI Wrote My First JS CodeHoly Shit - Chakra Ui