OpenMRS

Can we do multiple inheritance in Java?

This task is about inheritance in Object-oriented software development. You are expected to write a document about this question.

Statement

In Java, we can do multiple inheritances among interfaces. But still, we can't do the multiple inheritances among the classes.

Question

  1. Do you agree above statement?
  2. If agree, Why we can't do the multiple inheritances in Java among the classes?
  3. Briefly explain your ideas and thoughts with suitable examples. You can use Vehicle, Car, Two wheelers, Lorry as the classes to show the examples. You can add any methods, features to those classes to answer this questions.
    If not agree, provide your answer against that statement

You must mention the references or resources at the last which you used for this task.

Submission steps

You are expected to submit a PDF document or shared Google Doc for the submissions

Task tags

  • java
  • coding
  • beginner
  • inheritance

Students who completed this task

akshi04, IZKA, mihir0409, Rutvik patel, Aria, rpan11, aranyoray, Vishnu S, Aditya_Harsh, Aryu, Fungucide, AryanTodi, Sambhav, ajailani4, symt, Khairul Amirin(), Esha_2003, U DEVAKI, ArchitHax, katelawyer

Task type

  • code Code

Level

Beginner
close

2018