The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

hettlage (136) [Avatar] Offline
#1
Happy New Year 2017!

I know, it's a bit pedantic, but the wording of the test description "The Contact class should have a valid constuctor [sic]" in listing 2.7 arguably suggests that you need the empty constructor in the definition of Contact. But leaving out the constructor is perfectly fine:

export class Contact {
}
Jesse Palmer (53) [Avatar] Offline
#2
hettlage wrote:Happy New Year 2017!

I know, it's a bit pedantic, but the wording of the test description "The Contact class should have a valid constuctor [sic]" in listing 2.7 arguably suggests that you need the empty constructor in the definition of Contact. But leaving out the constructor is perfectly fine:

export class Contact {
}


Happy New Year!

I agree, you don't really need an empty constructor at that point, it doesn't add anything. You will need to add it a little later, though. I'll remove in the first step. Thanks for the input!

Jesse