Şimdi Ara

java ödevimi yapamadım, ilk defa görüyorum

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
1 Misafir - 1 Masaüstü
5 sn
4
Cevap
0
Favori
368
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • Arkadaşlar ödevimi yapmasanız bile en azından anlatabilirsiniz. C++'ım çok iyi fakat javayı bu sene ilk defa alıyorum ve nasıl yapacağımı bilmiyorum

    Design a book class for a library application based on the description below.
     Every book has a title (string), an author (String), a publisher (String), and an ISBN number (long).
     When a book is checked out from the library, the date (Date) and the name of the member (String) that is checking out the book are stored. Also a flag (boolean) indicating whether the book is available is set to false. These 3 fields will be adjusted accordingly when the book is returned by the member.
     If a member tries to check out an unavailable book, s/he will see an error message.
     Books borrowed by members are due back at a maximum of 30,000 milliseconds later. At any moment, a librarian can query the amount of time left to the due date of a book. The time left will be printed on the screen in milliseconds.
     The librarian wants to tell members when a book would be due if it were (not is) borrowed now. Write a static function that returns the String representation of the due date from now.



    < Bu mesaj bu kişi tarafından değiştirildi helsing2 -- 25 Kasım 2015; 14:37:50 >







  • Bir tane Book class i yazacaksin. Member atttibute lari verilmis. Bunun borrow, isAvailable gibi metodlari olacak. Borrow edildiginde icindeki member lari degistirecek. Tam olarak zorlandigin kisim nedir ?

    < Bu ileti mobil sürüm kullanılarak atıldı >
  • quote:

    Orijinalden alıntı: Mephalay

    Bir tane Book class i yazacaksin. Member atttibute lari verilmis. Bunun borrow, isAvailable gibi metodlari olacak. Borrow edildiginde icindeki member lari degistirecek. Tam olarak zorlandigin kisim nedir ?

    isAvailable metodunu oluşturamıyorum, bir de borrow etmeyi bilmiyorum.
  • public class Book{

    public boolean isAvailable(){
    //TODO available olup olmama hesaplari
    }

    public boolean borrow(String borrower){
    if(!isAvailable())
    return false;
    //TODO Borrow hesaplari
    }



    }

    < Bu ileti tablet sürüm kullanılarak atıldı >
  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.