Talk:Transient Attributes: Difference between revisions

From EiffelStudio: an EiffelSoftware project
Jump to navigation Jump to search
m Added a question about inheritanceof volatile attributes
 
Manus (talk | contribs)
No edit summary
Line 1: Line 1:
--[[User:Alexander Kogtenkov|Alexander Kogtenkov]] 15:28, 30 June 2009 (UTC) What happens when the attribute is inherited? It is still possible to inherit the volatile attribute in an expanded class. Or does the volatile property work only in the class it is declared, i.e. the property of being volatile is not inherited?
--[[User:Alexander Kogtenkov|Alexander Kogtenkov]] 15:28, 30 June 2009 (UTC) What happens when the attribute is inherited? It is still possible to inherit the volatile attribute in an expanded class. Or does the volatile property work only in the class it is declared, i.e. the property of being volatile is not inherited?
:'''--[[User:Manus|manus]] 15:06, 1 July 2009 (UTC)''' The validity rules are applied for inherited attributes as well, and the volatile property is inherited. In order to not inherit it, you have to redefine the attribute.

Revision as of 15:06, 1 July 2009

--Alexander Kogtenkov 15:28, 30 June 2009 (UTC) What happens when the attribute is inherited? It is still possible to inherit the volatile attribute in an expanded class. Or does the volatile property work only in the class it is declared, i.e. the property of being volatile is not inherited?

--manus 15:06, 1 July 2009 (UTC) The validity rules are applied for inherited attributes as well, and the volatile property is inherited. In order to not inherit it, you have to redefine the attribute.