Hi I started to learn Java today and have a problem with my code. I have 3 different classes and want that the int "blz" gets the value of the super number and after that the value of "blz" should get printed in the main class.
Here is my current code: my main class "Start":
public class Start
{
public static void main(String[] args)
{
Volksbank aufruf = new Volksbank(); //dont know how I can print blz
}
}
my second class "Bank":
public abstract class Bank {
private int Kontonummer;
private int blz;
public Bank(){}
public Bank(int bankleitzahl){
this.blz = bankleitzahl;
}
}
my last class "Volksbank":
public class Volksbank extends Bank
{
public Volksbank(int bankleitzahl)
{
super(234345);
}
}