plain/semester_1/erg10_ask3/Erg10_Ask3.java
public static void main(String[] args) {
        int aM, oY, eP;
        double bM;
        
        //with constructor
        System.out.println("employee number 1");
        System.out.println("enter person serial number: ");
        aM = scannerUserInput.getInteger();
        System.out.println("enter base income amount: ");
        bM = scannerUserInput.getDouble();
        System.out.println("enter overtime hours: ");
        oY = scannerUserInput.getInteger();
        System.out.println("enter degree type: ");
        eP = scannerUserInput.getInteger();
        Ypallhlos y1 = new Ypallhlos(aM, oY, eP, bM);
        System.out.println(y1);
        y1.showTelikosMisthos();
        
        //with set methods
        System.out.println("employee number 2");
        Ypallhlos y2 = new Ypallhlos();
        System.out.println("enter person serial number: ");
        aM = scannerUserInput.getInteger();
        y2.setarithmosMitrwou(aM);
        System.out.println("enter base income amount: ");
        bM = scannerUserInput.getDouble();
        y2.setbasikosMisthos(bM);
        System.out.println("enter overtime hours: ");
        oY = scannerUserInput.getInteger();
        y2.setoresYperorias(oY);
        System.out.println("enter degree type: ");
        eP = scannerUserInput.getInteger();
        y2.seteidosPtyxiou(eP);
        System.out.println(y2);
        System.out.println("final income amount: " + y2.returnTelikosMisthos() + "\n");
        //if setkodikosEpixeirhshs is called for one object, the value changes for both.
    }
/**
     * @param args the command line arguments
     */
@param args the command line arguments
@param args the command line arguments
public static void main(String[] args) {
        int aM, oY, eP;
        double bM;
        System.out.println("employee number 1");
        System.out.println("enter person serial number: ");
        aM = scannerUserInput.getInteger();
        System.out.println("enter base income amount: ");
        bM = scannerUserInput.getDouble();
        System.out.println("enter overtime hours: ");
        oY = scannerUserInput.getInteger();
        System.out.println("enter degree type: ");
        eP = scannerUserInput.getInteger();
        Ypallhlos y1 = new Ypallhlos(aM, oY, eP, bM);
        System.out.println(y1);
        y1.showTelikosMisthos();
        System.out.println("employee number 2");
        Ypallhlos y2 = new Ypallhlos();
        System.out.println("enter person serial number: ");
        aM = scannerUserInput.getInteger();
        y2.setarithmosMitrwou(aM);
        System.out.println("enter base income amount: ");
        bM = scannerUserInput.getDouble();
        y2.setbasikosMisthos(bM);
        System.out.println("enter overtime hours: ");
        oY = scannerUserInput.getInteger();
        y2.setoresYperorias(oY);
        System.out.println("enter degree type: ");
        eP = scannerUserInput.getInteger();
        y2.seteidosPtyxiou(eP);
        System.out.println(y2);
        System.out.println("final income amount: " + y2.returnTelikosMisthos() + "\n");
    }
public static void main ( String [ ] args ) { int aM , oY , eP ; double bM ; System . out . println ( "employee number 1" ) ; System . out . println ( "enter person serial number: " ) ; aM = scannerUserInput . getInteger ( ) ; System . out . println ( "enter base income amount: " ) ; bM = scannerUserInput . getDouble ( ) ; System . out . println ( "enter overtime hours: " ) ; oY = scannerUserInput . getInteger ( ) ; System . out . println ( "enter degree type: " ) ; eP = scannerUserInput . getInteger ( ) ; Ypallhlos y1 = new Ypallhlos ( aM , oY , eP , bM ) ; System . out . println ( y1 ) ; y1 . showTelikosMisthos ( ) ; System . out . println ( "employee number 2" ) ; Ypallhlos y2 = new Ypallhlos ( ) ; System . out . println ( "enter person serial number: " ) ; aM = scannerUserInput . getInteger ( ) ; y2 . setarithmosMitrwou ( aM ) ; System . out . println ( "enter base income amount: " ) ; bM = scannerUserInput . getDouble ( ) ; y2 . setbasikosMisthos ( bM ) ; System . out . println ( "enter overtime hours: " ) ; oY = scannerUserInput . getInteger ( ) ; y2 . setoresYperorias ( oY ) ; System . out . println ( "enter degree type: " ) ; eP = scannerUserInput . getInteger ( ) ; y2 . seteidosPtyxiou ( eP ) ; System . out . println ( y2 ) ; System . out . println ( "final income amount: " + y2 . returnTelikosMisthos ( ) + "\n" ) ; }
@param args the command line arguments
@param args the command line arguments
//with constructor //with set methods //if setkodikosEpixeirhshs is called for one object, the value changes for both.