Question: Write the class definition for a class named Worker. The class should include Private variables and Property procedures for a Worker objects name and salary.
Write the class definition for a class named Worker. The class should include Private variables and Property procedures for a Worker object’s name and salary. The salary may contain a decimal place. The class also should contain two constructors: the default constructor and a parameterized constructor.
Step by Step Solution
3.44 Rating (167 Votes )
There are 3 Steps involved in it
Public Class Worker PrivatestrWorkerName As String Private dblSalary As Double Public Property Work... View full answer
Get step-by-step solutions from verified subject matter experts
