Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.89 KB | None | 0 0
  1.  
  2. /**
  3.  * Write a description of class Hending here.
  4.  *
  5.  * @author (your name)
  6.  * @version (a version number or a date)
  7.  */
  8. public class Hending
  9. {
  10.     // instance variables - replace the example below with your own
  11.     private String hendingsNavn;
  12.     private int hendingsÅr;
  13.  
  14.     /**
  15.      * Constructor for objects of class Hending
  16.      */
  17.     public Hending(String hendingsNavn, int hendingsÅr)
  18.     {
  19.         this.hendingsNavn = hendingsNavn;
  20.         this.hendingsÅr = hendingsÅr;
  21.     }
  22.  
  23.     /**
  24.      * An example of a method - replace this comment with your own
  25.      *
  26.      * @param  y   a sample parameter for a method
  27.      * @return     the sum of x and y
  28.      */
  29.     public String getHendingsNavn()
  30.     {
  31.         // put your code here
  32.         return this.hendingsNavn;
  33.     }
  34.    
  35.     public int getHendingsÅr() {
  36.        
  37.         return this.hendingsÅr;
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement