Professional Documents
Culture Documents
(AIUB)
Faculty of Science and Technology (FST)
Department of Computer Science (CS)
Developing basic Java classes with attributes, constructors, methods, static variables
Lab Task – 3 :
and static methods.
Look at the following class notations carefully, and develop the program.
American International University-Bangladesh (AIUB)
StoryBook
String isbn
String bookTitle
String authorName
double price
int availableQuantity
String category
static double discountRate
StoryBook( )
StoryBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity,
String category)
Start
The Start class contains the main method. Inside the main method, create two objects of
StoryBook and two objects of TextBook. Demonstrate all the methods and constructors.