MCPcopy Create free account
hub / github.com/careercup/ctci / Book

Class Book

java/Chapter 8/Question8_5/Book.java:3–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package Question8_5;
2
3public class Book {
4 private int bookId;
5 private String details;
6
7 public Book(int id, String det) {
8 bookId = id;
9 details = det;
10 }
11
12 public void update() { }
13
14 public int getID() {
15 return bookId;
16 }
17
18 public void setID(int id) {
19 bookId = id;
20 }
21
22 public String getDetails() {
23 return details;
24 }
25
26 public void setDetails(String details) {
27 this.details = details;
28 }
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected