001 002 003 /** 004 * Represents a transaction from "Konto A" to "Konto B" using 005 * double betrag as amount. 006 * @deprecated use Ueberweisung with Konto interface. 007 * @author Heinz Kredel. 008 */ 009 010 public class UeberweisungA extends Thread { 011 012 KontoA a; 013 KontoA b; 014 double betrag; 015 016 /** 017 * @param A Represents an account. 018 * @param B Represents an account. 019 * @param be amount to transfer from account A to account B. 020 */ 021 public UeberweisungA(KontoA A, KontoA B, double be) { 022 a = A; b = B; betrag = be; 023 } 024 025 public void run() { 026 double x = a.getGeld(betrag); 027 double y = b.putGeld(betrag); 028 } 029 030 }