| 1 | package BehaviouralDesignPatterns.IteratorDesignPattern; |
| 2 | |
| 3 | public class Book { |
| 4 | private int price; |
| 5 | private String bookName; |
| 6 | |
| 7 | Book(int price, String bookName){ |
| 8 | this.price = price; |
| 9 | this.bookName = bookName; |
| 10 | |
| 11 | } |
| 12 | |
| 13 | public int getPrice(){ |
| 14 | return price; |
| 15 | } |
| 16 | |
| 17 | public String getBookName(){ |
| 18 | return bookName; |
| 19 | } |
| 20 | |
| 21 | } |
nothing calls this directly
no outgoing calls
no test coverage detected