Problem

Look at the following code for the Book class:Public Class Book' Private member variab...

Look at the following code for the Book class:

Public Class Book' Private member variablesPrivate strTitle As StringPrivate strAuthor As StringPrivate strPublisher As StringPrivate strlsbn As String' ConstructorPublic Sub New()strTitle = String.Empty strAuthor = String.EmptystrPublisher = String.Emptystrlsbn = String.Empty End Sub' Title PropertyPublic Property Title() As String GetReturn strTitleEnd GetSet(ByVal value As String) strTitle = valueEnd SetEnd Property' Author propertyPublic Property Author() As StringGetReturn strAuthorEnd GetSet(ByVal value As String)strAuthor = valueEnd SetEnd Property' Publisher propertyPublic Property Publisher() As String GetReturn strPublisherEnd GetSet(ByVal value As String)strPublisher = valueEnd SetEnd Property' Isbn propertyPublic Property Isbn() As String GetReturn strlsbn End GetSet(ByVal value As String)strlsbn = valueEnd SetEnd PropertyEnd Class

Design a class named TextBook that is derived from the Book class. The TextBookclass should have the following properties:

• Course (string). This property holds the name of the course that the textbook is used for.

• OrderQuantity (integer). This property holds the number of books to order for the course.

The OrderQuantity property cannot be negative, so provide error checking in the property procedure.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT