Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 396 Bytes

File metadata and controls

12 lines (12 loc) · 396 Bytes

class X(Y) Make a class named X that is-a Y. class X(object): def init(self,J) Class X has-a init that takes self and J parameters class X(obbject): def M(self, J) class X has-a function named M that takes self and J parameters. foo = X() Set foo to an instance of class X foo.M(J) From foo get the K attribute and set it to Q foo.K = Q From foo get the K attribute and set it to Q