hi
im trying to write a program that will create a class to store info on books (title, author, number of pages and price) and that will trow a custom exception when the price entered for a book is higher than 10 cents per page. I got the class working but i cant figure out how to throw the exception any help would be appreciated.
alex9292
0
Newbie Poster
Zinderin
11
Junior Poster in Training
alex9292
0
Newbie Poster
Zinderin
11
Junior Poster in Training
alex9292
0
Newbie Poster
wisaacs
-2
Light Poster
alex9292
0
Newbie Poster
arunkumars
14
Junior Poster
arunkumars
14
Junior Poster
wisaacs
-2
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.