简体   繁体   中英

is it possible to make an atribute of a superclass static in a certain subclass?

So, I have various sub classes of Store . and they all have rent . problem is one specific subclass has the same rent for all instances of the class whilst the other ones can be whatever. That meaning that the class in question, Quiosque has a static rent. is there a way to to make this precise atribute static wihle still inhereting Store ?

this is the class diagram. rendaFixa is what i called rent and renda is just there because i'm still thinking as to what to do about this class. i konw this is confusing, sorry

https://gyazo.com/f0f353885647fc0dd63a8c9b13b47695

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM