I am looking at a source code There is a class called A and it has a parameter in its _init_ function called.

Class A
self.id = id

There is another class called B and has a parameter in its __init__ function called

Class B
self.ide = ide

There's an independent function called abc having ide as a parameter passed to it and a print function prints its as ide.id
..("sending %d with" %(ide.id))

Can someone explain to me what is going on here ?

Recommended Answers

All 2 Replies

Could you post the source code so we can better understand your question? remember to incase it in a code-block and such

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.