Hi All,

I'm new to python3 and scratching my head to write a program for this logic:

classA.py
Class A:
          # class for socket communication
          basic init method that initializes port, address, connection

         method send(message):
         # for sending any message through the given port


       method receive():
       # will be keep on listening for incoming messages



classB.py

Class B:
           import the send method from class A
           send the messages from this class


classC.py

Class C:
            import the receive method from the class A
            receive all the messages from the same socket from here.



Note: 
 classA.py, classB.py, ClassC.py are saved in different locations.


Can someone help me in writing the code and how can I create a single 
object and use it in multiple classed?

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/d457de3d-4353-47b4-906c-187d616cd9fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to