can someone tell me i am right or wrong? I am really confused in solving my problem.
What I have (or what I want to do, or I think:
I have:
Class B{
........
........
interface I{
......
........
}
.......
.......
}
and:
Class A implements B.I{
........
.......
B b= new B();
}
Is this the right way to communicate between two classes of class B and class A? how should i do this job. I want some data from class A to be passed to class B for further operations.
how should I do the methods that I will implement in A is called from B when I need data? A simple example of an interface having the same scenario will really help me. Doea have a good explanation of how the interface works? or how to use them?
android..?
, OnClick Listeners?
?
:
class A implements View.OnClickListener
onClick?
, . ( , , )
, ,
, , , ?
!
Thankyou