Book


Submit solution

Points: 10
Time limit: 5.0s
Memory limit: 256M

Author:
Problem type
Allowed languages
C#, Go, Java

Donat el següent codi, defineix la classe Book. Ha de contenir tres camps: camp string title, camp enter yearOfPublishing i camp booleà isAvailable.

// Declara aqui la classe (sense cap modificador)

public class Main {
    public static void main(String[] args) {
        Book book = new Book();

        book.title = "Through the looking glass";
        book.yearOfPublishing = 1871;
        book.isAvailable = true;

        System.out.println(book.title);
        System.out.println(book.yearOfPublishing);
        System.out.println(book.isAvailable);
    }
}

Input Format

-

Constraints

-

Output Format

-

Test Case 1

Input
Output
Through the looking glass
1871
true

Authorship: Gerard Falcó

CC BY-NC-SA 4.0