001/****************************************************************************
002 * Copyright/Copyleft:
003 *
004 * For this source the LGPL Lesser General Public License,
005 * published by the Free Software Foundation is valid.
006 * It means:
007 * 1) You can use this source without any restriction for any desired purpose.
008 * 2) You can redistribute copies of this source to everybody.
009 * 3) Every user of this source, also the user of redistribute copies
010 *    with or without payment, must accept this license for further using.
011 * 4) But the LPGL is not appropriate for a whole software product,
012 *    if this source is only a part of them. It means, the user
013 *    must publish this part of source,
014 *    but don't need to publish the whole source of the own product.
015 * 5) You can study and modify (improve) this source
016 *    for own using or for redistribution, but you have to license the
017 *    modified sources likewise under this LGPL Lesser General Public License.
018 *    You mustn't delete this Copyright/Copyleft inscription in this source file.
019 *
020 * @author Hartmut Schorrig: hartmut.schorrig@vishia.de, www.vishia.org
021 * @version 0.93 2011-01-05  (year-month-day)
022 *******************************************************************************/ 
023package org.vishia.java2C.test;
024
025/**
026 * This class extends {@link ImpIfc} to demonstrate the inheritance of classes. 
027 * The baseclass {@link ImpIfc} is an example of a class which implements 2 different 
028 * but non-exclusive interfaces, see there. This class overrides one method: 
029 * {@link ImplIfc#processIfcMethod(int)}, see {@link #processIfcMethod(int)}. 
030 * Follow the dynamic call (virtual) explainations and test it. 
031 * It is an concept which is prevalent in Java and Object Orientation, but not so relevant
032 * in most C applications.
033 * @author Hartmut Schorrig
034 *
035 */
036public class ExtendsImpl extends ImplIfc
037{
038  //SimpleClass test;
039
040        ExtendsImpl()
041        {
042                super(234);
043        }
044
045        
046  /**This method is the overridden form of
047   * {@link org.vishia.java2C.test.ImplIfc#testOverridden(float)}.
048   */
049  @Override int testOverridden(float value)
050  { assert(this  instanceof ExtendsImpl);
051    return (int)(value/1000);
052  }
053  
054  
055        
056        
057}