Question: 1. Explain the differences between a constructor method and regular (non-constructor) methods. 2. Design an object that models an email message. Write down the fields
1. Explain the differences between a constructor method and regular (non-constructor) methods.
2. Design an object that models an email message. Write down the fields (and their types) and the method signatures for each method in the class. You do not need to implement the methods.
3. Design an object that models a medical prescription. Write down the fields (and their types) and the method signatures for each method in the class. You do not need to implement the methods.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
