Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, October 29, 2015

Codecademy > Learn Java > Methods: I Sample Solution


class Dog{
 
  int age;

  public Dog(int dogsAge){
age = dogsAge;
  }
 
  public void bark() {
    System.out.println("Woof!");
  }

public static void main(String[] args) {
Dog spike = new Dog(1);
}

}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts