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
> "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
"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