Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. class Dog {
  2.  
  3.   int age;
  4.  
  5.     public Dog(int dogsAge) {
  6.    
  7.     dogsAge = age;
  8.  
  9.   }
  10.  
  11.  
  12.     public static void main(String[] args) {
  13.    
  14.     Dog spike = new Dog(5); // I wrote this
  15.  
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement