Quick actions

cmd+k|ctrl+k

Navigation

Languages

Class_Attributes_python3

Snippet info

Language

Python

Visibility

public

Author

rednik96

Created

2017-11-16T09:17:44Z

Updated

2017-11-16T10:37:19Z

class A:
    Test = 'A'
    
    def test(self):
        print(self.Test)
        print(id(self.Test))


class B(A):
    Test = 'B'
    

class C(B):
    pass

A().test()
B().test()
C().test()
INFO