Re: TDPL 6.4.3 Overriding Is Only Voluntary

2011-03-23 Thread Jesse Phillips
Caligo Wrote: > "The override keyword in the signature of Friend.bgColor is required," (193) > > This code compiles: > > class Contact{ string bgColor(){ return ""; } } > class Friend : Contact{ > string bgColor(){ return "LightGreen"; } > } > > So how is 'override' required? Can I get an

Re: TDPL 6.4.3 Overriding Is Only Voluntary

2011-03-22 Thread Jonathan M Davis
> "The override keyword in the signature of Friend.bgColor is required," > (193) > > This code compiles: > > class Contact{ string bgColor(){ return ""; } } > class Friend : Contact{ > string bgColor(){ return "LightGreen"; } > } > > So how is 'override' required? Can I get an example of wh

TDPL 6.4.3 Overriding Is Only Voluntary

2011-03-22 Thread Caligo
"The override keyword in the signature of Friend.bgColor is required," (193) This code compiles: class Contact{ string bgColor(){ return ""; } } class Friend : Contact{ string bgColor(){ return "LightGreen"; } } So how is 'override' required? Can I get an example of where 'override' makes a