Assume you have a class named Puppy which has two attributes: Breed (a string), and Weight (a float). How would you create a constructor for this class?

a. Declare Puppy As New Puppy
b. Public Puppy()
Set Breed = “Poodle“
Set Weight = 15
End Constructor
c. Public Puppy()
Set Breed = “Poodle“
Set Weight = “15”
End Constructor
d. You cannot create a constructor for a class that has attributes of different types.

B

Computer Science & Information Technology

You might also like to view...

The Report tool generates a report by displaying all records and all fields from the selected record source

Indicate whether the statement is true or false

Computer Science & Information Technology

Technologies that are used to help nonvisual users view content are ________ technologies

A) checker B) alternative C) accessibility D) three-dimensional

Computer Science & Information Technology