org.vishia.java2C.test
Class ExtendsImpl

java.lang.Object
  extended by org.vishia.java2C.test.SimpleClass
      extended by org.vishia.java2C.test.ImplIfc
          extended by org.vishia.java2C.test.ExtendsImpl
All Implemented Interfaces:
Ifc, Ifc2

public class ExtendsImpl
extends ImplIfc

This class extends ImpIfc to demonstrate the inheritance of classes. The baseclass ImpIfc is an example of a class which implements 2 different but non-exclusive interfaces, see there. This class overrides one method: ImplIfc.processIfcMethod(int), see ImplIfc.processIfcMethod(int). Follow the dynamic call (virtual) explainations and test it. It is an concept which is prevalent in Java and Object Orientation, but not so relevant in most C applications.


Field Summary
 
Fields inherited from class org.vishia.java2C.test.ImplIfc
data, ref, val
 
Fields inherited from class org.vishia.java2C.test.SimpleClass
anyRef, x1
 
Fields inherited from interface org.vishia.java2C.test.Ifc
constString, constValue, constValue2
 
Constructor Summary
ExtendsImpl()
           
 
Method Summary
(package private)  int testOverridden(float value)
          This method is the overridden form of ImplIfc.testOverridden(float).
 
Methods inherited from class org.vishia.java2C.test.ImplIfc
anotherIfcmethod, anotherIfcmethod, processIfcMethod, processIfcMethod, returnAnyInstance, returnAnyInstanceOverrideable, returnThis, returnThisOverrideable, testIfc2, testImplIfc, testOverrideAble, toString
 
Methods inherited from class org.vishia.java2C.test.SimpleClass
addValue, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtendsImpl

ExtendsImpl()
Method Detail

testOverridden

int testOverridden(float value)
This method is the overridden form of ImplIfc.testOverridden(float).

Overrides:
testOverridden in class ImplIfc