Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
63
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 Friend {
  2.  
  3. String name;
  4. String midName;
  5. Date dateOfBirth;
  6.  
  7. // this class has on defautl constructor, as you have not defined any construcotr;
  8. // You can create objects of type Friend like this Friend f = new Friend();
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement