Skip to content

Instantly share code, notes, and snippets.

@minte9
Last active August 31, 2021 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minte9/aa63622dfe24968e5367f8db978ebebd to your computer and use it in GitHub Desktop.
Save minte9/aa63622dfe24968e5367f8db978ebebd to your computer and use it in GitHub Desktop.
/**
* Create a new Dog instance ...
* Make the dog size = 10
*/
class App {
public static void main(String[] args) {
/**
* SOLUTION
*/
Dog d = new Dog();
d.size = 10;
System.out.println(d.size); // 10
}
}
class Dog {
public int size;
public String name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment