Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 29th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package domein;
  2.  
  3. public class Persoon {
  4.         private String naam;
  5.         private int leeftijd;
  6.        
  7.         public Persoon()
  8.         {
  9.                 this.naam = "Jan";
  10.                 this.leeftijd = 20;
  11.         }
  12.        
  13.         public Persoon (String naam, int leeftijd)
  14.         {
  15.        
  16.         }
  17.  
  18.         public String getNaam() {
  19.                 return naam;
  20.         }
  21.  
  22.         public void setNaam(String naam) {
  23.                 this.naam = naam;
  24.         }
  25.  
  26.         public int getLeeftijd() {
  27.                 return leeftijd;
  28.         }
  29.  
  30.         public void setLeeftijd(int leeftijd)
  31.         {
  32.                 this.leeftijd = leeftijd;
  33.         }
  34.        
  35. }