FileDocCategorySizeDatePackage
ElectronicBookInfo.javaAPI DocExample1273Tue Oct 29 09:37:34 GMT 2002ora.jwsnut.chapter6.serializerbookservice

ElectronicBookInfo

public class ElectronicBookInfo extends BookInfo
Subclass of BookInfo used for electronic books.

Fields Summary
private String
url
The URL of the book
Constructors Summary
public ElectronicBookInfo()
Constructs an ElectronicBookInfo object. This constructor is used for deserialization.

    
public ElectronicBookInfo(String title, String author, String editor, double price, String url)
Constructs an ElectronicBookInfo object initialized with given attributes.

param
title the book's title
param
author the name of the book's author
param
editor the name of the book's editor
param
price the price of the book.
param
url the book's URL

        super(title, author, editor, price);
        this.url = url;
    
Methods Summary
public java.lang.StringgetURL()
Gets the url for the book

return
the book's url.

        return url;
    
public voidsetURL(java.lang.String url)
Sets the url of the book

param
url the book's url.

        this.url = url;