Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Dog {
- int age;
- public Dog(int dogsAge) {
- dogsAge = age;
- }
- public static void main(String[] args) {
- Dog spike = new Dog(5); // I wrote this
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement