Using the knowledge in computational language in JAVA it is possible to write a code that can organize the books in price and author classes.
<h3>Writing the code in JAVA we have:</h3>
<em>class Book{</em>
<em> private int price;</em>
<em> private String author;</em>
<em> public Book(int p){</em>
<em> price=p;</em>
<em> }</em>
<em> public Book(Book b){</em>
<em> price=b.price;</em>
<em> author=b.author;</em>
<em> }</em>
<em> public int getPrice(){</em>
<em> return price;</em>
<em> }</em>
<em> public void setAuthor(String a){</em>
<em> author=a;</em>
<em> }</em>
<em> public String toString(){</em>
<em> return author+" "+Integer.toString(price);</em>
<em> }</em>
<em>}</em>
<em>public class Main</em>
<em>{</em>
<em> public static void main(String[] args) {</em>
<em> Book b=new Book(450);</em>
<em> b.setAuthor("Jack");</em>
<em> Book b1=new Book(b);</em>
<em> System.out.println(b1.toString());</em>
<em> }</em>
<em>}</em>
See more about JAVA at brainly.com/question/18502436
#SPJ1