COMP 1405 Lecture Notes - Lecture 1: Class Variable, Printf Format String, Gregorian Calendar

40 views8 pages

Document Summary

Comp1405 - assignment #4 (due: friday, november 27th @ 4:30pm (afternoon)) In this assignment, you will build a very simple insurance company system. You will gain practice with inheritance, overriding methods, an abstract class, abstract methods and exceptions. You will also make use of proper coding style by making public/private/protected attributes & methods and creating get/set methods. The insurance system will keep track of the insurance company"s clients. Each client will have at least one policy with the company. The assignment constructs the system in three parts: defining insurance policies, defining clients and defining an exception. Define a public class called policy which has a private static/class variable called next_policy_number which is an int (initially set to 1) representing the number to be given to the next policy created. Create a public constructor which takes a single float parameter and uses it to set the amount variable.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers