Guest User

Untitled

a guest
Jun 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. public class Toets {
  2.  
  3. public Toets() {
  4. System.out.println( "Testapplicatie" );
  5. Datum datum1, datum2, datum3;
  6.  
  7. datum1 = new Datum();
  8.  
  9. datum2 = new Datum( 3, 7, 2009 );
  10.  
  11. System.out.println( datum1 );
  12. System.out.println( datum2 );
  13.  
  14. datum1.setDag( 18 );
  15. datum1.setMaand( 7 );
  16. datum1.setJaar( 1958 );
  17. System.out.println( datum1 );
  18.  
  19. datum3 = new Datum (5,5,2012);
  20.  
  21. Tentamenresultaten tentamenResultaat = new Tentamenresultaten("Nederlands", 6.5, datum3);
  22.  
  23. Student student1 = new Student("kees", 13, 5, 1992, tentamenResultaat);
  24.  
  25. System.out.println(student1.getGeboortedatum());
  26. System.out.println(student1.getTentamenresultaten());
  27. System.out.println(student1.getNaam());
  28. }
  29.  
  30. public static void main( String[] args ) {
  31.  
  32. Toets toets = new Toets();
  33. }
  34.  
  35. }
Add Comment
Please, Sign In to add comment