MCPcopy Create free account
hub / github.com/chuangw6/COMP90041_Tutorial / setBirthYear

Method setBirthYear

tutorial 6/code/demo/Person.java:146–159  ·  view source on GitHub ↗

Precondition: The date of birth has been set, and changing the year part of the date of birth will give a consistent date of birth. Postcondition: The year of birth is (changed to) newYear.

(int newYear)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

consistentMethod · 0.95
setYearMethod · 0.45

Tested by

no test coverage detected