In: Computer Science
a. In the statement Dim newStudent As Student, which is the class and which is the object variable?
b. Look at the following problem description and identify the
potential classes.
We need to keep a list of customers and record our business
transactions with them. Each time a customer purchases a product,
an order is filled out. Each order shows a list of items kept in
our central warehouse.
a) In the statement Dim newStudent As Student,
Class - Student
object variable - newStudent
b) Potential classes.
TA two step process creates an instance of a class.Declare a
variable whose type is the class
Create instance of the class with New keyword and assign the
instance to the variable
New_Customer defined here as an object variable Can accomplish both
steps in one statement.
Dim New_Customer As New Customer()