Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


Java Programming Code Examples

Java > Learning Code Examples

Multiple Inheritance

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Multiple Inheritance package com.ack.learning; import java.io.Serializable; import java.rmi.Remote; import java.util.Vector; public class MultipleInheritance extends Vector implements Remote, Serializable { /** * Java is a single inheritance tree and only allows a * class to inherit implementation from one class. That * class is specified using extends (eg. Vector ) otherwise * if nothing is specified it is Object, the root class in * the Java inheritance hierarchy * <p> * However, Java does support the multiple interface inheritance. * In this example we inheritance from both the Remote and Serializable * interfaces. */ public static void main( String[] args ) { } }