The Car class definition is shown in Figure 11-28. Write a Dim statement that uses the default

Question:

The Car class definition is shown in Figure 11-28. Write a Dim statement that uses the default constructor to instantiate a Car object in an application. The Dim statement should assign the object to a variable named nissan. Next, write assignment statements that the application can use to assign the string “370Z” and the number 30614.75 to the Model and Price properties, respectively. Finally, write an assignment statement that the application can use to invoke the GetNewPrice function. Assign the function’s return value to a variable named dblNewPrice.

Public Class Car Private _strModel As String Private _db1Price As Double Public Property Model As String Get Return _strModel End Get Set (value As String) strModel = value End Set End Property Public Property Price As Double Get Return _db1Price End Get Set (value As Double) _db1Price = value End

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: