MCPcopy Create free account
hub / github.com/Anchals24/Low-Level-Design / Book

Class Book

IteratorDesignPattern/Book.java:3–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package BehaviouralDesignPatterns.IteratorDesignPattern;
2
3public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected