Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to achieve multiple inheritance java

a128d15a-720d-4ef4-b9ff-ceec9025acc1Oct 13 2015 — edited Dec 1 2015

Hi Friend

I am having two class Ford and Car, both classes is having methods display. I can't touch this because both classes are third party class.

Say for Ex :

class Ford {

  public void meth(){

    System.out.println("Display Method Ford");

}

}

class Car{

public void meth(){

    System.out.println("Display Method Car");

}

}

Class FordCarImpl {

  public void meth(){

      // Need Ford Method

     //  Need Car Method

Can you please tell me How to call those two methods my implemented class instead of creating the object?

Regards

Sheik Dawood.K

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2015
Added on Oct 13 2015
2 comments
1,033 views