karana
asked on
object communication
sir
i m working on ansi c .
here , class A
class B
wat r the differnt communication possible bet objects of these classes
ie , A a ,B b ; how can u communicate bet ,a & b
??
>> wat r the differnt communication possible bet objects of these classes
What exactly A and B do ?
Until you are not sure about the class of object you cannot put members in it.
What exactly A and B do ?
Until you are not sure about the class of object you cannot put members in it.
Look at my previous post to a similar question
https://www.experts-exchange.com/questions/21890796/How-C-objects-Communicate-to-each-other.html
https://www.experts-exchange.com/questions/21890796/How-C-objects-Communicate-to-each-other.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Objects call other objects' class functions, which rajeev_devin argues in http:Q_21890796.html is the extent of inter-object communication natively supported by the C++ language. I agree with him. That's all the language provides you. You can design your own message queues or use message queues provided by your operating system or use interprocess communication in C++, but that's beyond the scope of what's provided by the C++ language.
> wat r the differnt communication possible bet objects of these classes
Name your operating system if you want to use an API or define the height of your sky if you want to design something yourself. You might have an object responsible for banging a drum, which another object listens to.
> wat r the differnt communication possible bet objects of these classes
Name your operating system if you want to use an API or define the height of your sky if you want to design something yourself. You might have an object responsible for banging a drum, which another object listens to.
I think C++ :)