Does Java not support multiple inheritance?
        Posted  
        
            by 
                user1720616
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1720616
        
        
        
        Published on 2012-12-18T04:57:58Z
        Indexed on 
            2012/12/18
            5:03 UTC
        
        
        Read the original article
        Hit count: 135
        
java
|inheritance
Lets us take instances of two classes
public abstract class Shapes
{
      public abstract void draw(Graphics g);
}
public class Rectangle extends Shapes
{
     public void draw(Graphics g)
     {
          //implementation of the method 
     }
}
here the class Rectangle has extended class Shapes and implicitly it extends class Object.I know no other extension is possible but cant we call inheriting classes Shapes and Object multiple inheritance?(Since inheriting two classes is multiple inheritance from one perspective)
© Stack Overflow or respective owner