Guest User

Untitled

a guest
Jul 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Foo f;
  2.  
  3. f = new Foo();
  4.  
  5. Foo otherFoo;
  6.  
  7. otherFoo = f;
  8.  
  9. f.IsFoo = true;
  10. bool isotherFooFoo = otherFoo.IsFoo;
  11.  
  12. Foo f = new Foo();
  13.  
  14. Class ABC
  15. {
  16. string name="";
  17.  
  18. public ABC()
  19. {
  20. this.name = "A1";
  21. }
  22. public ABC(name)
  23. {
  24. this.name = name;
  25. }
  26.  
  27. }
  28.  
  29. ABC a1 = new ABC();
  30.  
  31. ABC a1 = new ABC("James");
  32.  
  33. an object is an instance of a class
  34. an object = instance of a class
  35. an object = instance
Add Comment
Please, Sign In to add comment