Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write a description of class Hending here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Hending
- {
- // instance variables - replace the example below with your own
- private String hendingsNavn;
- private int hendingsÅr;
- /**
- * Constructor for objects of class Hending
- */
- public Hending(String hendingsNavn, int hendingsÅr)
- {
- this.hendingsNavn = hendingsNavn;
- this.hendingsÅr = hendingsÅr;
- }
- /**
- * An example of a method - replace this comment with your own
- *
- * @param y a sample parameter for a method
- * @return the sum of x and y
- */
- public String getHendingsNavn()
- {
- // put your code here
- return this.hendingsNavn;
- }
- public int getHendingsÅr() {
- return this.hendingsÅr;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement