Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public class A {
  2. private B b;
  3. public void setB(B b){
  4. this.b=b;
  5. }
  6. }
  7.  
  8. public class B{
  9. String bab;
  10. public B(ba){
  11. ba=bab;
  12. }
  13. }
  14.  
  15. public Main{
  16. public static void main(String args[]){
  17. A classA=new A();
  18. B classB=new B();
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement