>From: "Bresticker, Shalom" <shalom.bresticker@intel.com> >Comment #2: > >Can parameters be overridden in derived classes? (8.13) I think you need to clarify what you mean by "overridden" in this question. I see several possible ways it could be interpreted. First, the derived class could use the same name as a base class parameter to declare a property, method, type, parameter etc. Within the base class, the name would refer to this more local declaration, "overriding" the name in the base class. Second, the value of a parameter in the base class could be overridden by the derived class when declaring the base class specialization it is derived from. Third, you could simply be asking whether a parameter of a derived class can be overridden. I assume you were asking about the first. Yes, the parameter name could be overridden by declaring the same name in a base class. That doesn't do anything to the parameter, it just hides it from simple references in the derived class. This is a situation where you might need to use super.parameter_name to refer to the parameter value from the base class. Steven Sharp sharp@cadence.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue May 26 12:48:19 2009
This archive was generated by hypermail 2.1.8 : Tue May 26 2009 - 12:49:06 PDT