|
System. out. println("Muallifi : " +Muallif)
|
bet | 6/6 | Sana | 19.12.2023 | Hajmi | 31,62 Kb. | | #124061 |
Bog'liq Mustaqil ish 8System. 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;
}
}
|
| |