• Main. show_card(); //show() funksiyasi chaqirildi; } }
  • System. out. println("Muallifi : " +Muallif)




    Download 31,62 Kb.
    bet6/6
    Sana19.12.2023
    Hajmi31,62 Kb.
    #124061
    1   2   3   4   5   6
    Bog'liq
    Mustaqil ish 8

    System. out. println("Muallifi : " +Muallif);

    System. out. println("Sahifalar soni : " +soni);

    System. out. println("Ishlab chiqarilgan sanasi : " +yili);

    System. out. println("Kitob bahosi : " +narxi);

    } }

    class Kitob extends Kutubxona {

    private String person;

    public Kitob(String name, String Muallif, String soni, String yili, int narxi, String person){

    super(name, Muallif, soni, yili, narxi);

    this. person=person;

    }

    public void show_card () {

    show_soccer();

    System. out. println("Oluvchi shaxs : " +person);

    }

    }

    public class Main //Main nomli asosiy klass hosil qilindi;

    {

    public static void main(String[] args) {

    Kitob Main= new Kitob("Tanlangan asarlar","Tog`ay Murod","448 bet","2012-yil",15000,"Kamol Murodov"); //Main class o’zgaruvchilariga qiymatlar berildi;

    Main. show_card(); //show() funksiyasi chaqirildi;

    }

    }

    Download 31,62 Kb.
    1   2   3   4   5   6




    Download 31,62 Kb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    System. out. println("Muallifi : " +Muallif)

    Download 31,62 Kb.