Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How can classes access each other Functions and Variables at the same time
Post: RE: How can classes access each other Functions an...

Thank you ichabod801, class A(object): m = 1 def __init__(self, x): self.n = x + 2 Using c = A(5) d = B(6) in class A doesn't work, 'B' is not defined class B(object): o = 3 def __init__(self, ...
PythonOK General Coding Help 4 3,090 Dec-09-2018, 03:15 AM
    Thread: How can classes access each other Functions and Variables at the same time
Post: How can classes access each other Functions and Va...

How can classes access each other Functions and Variables at the same time? I know you have to use object and self with _init__ I was able to access Class A from Class B but I couldn't access both at ...
PythonOK General Coding Help 4 3,090 Dec-09-2018, 01:52 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020