how do i do this at all
I don't know how to complete this Help!!
Under discussion
Comments (6)
- Popular
- New
- Old
You must be signed in to leave a comment
sirisha
4 February 2019, 06:26
just creat an instance
+1
sirisha
4 February 2019, 06:26
public class Solution {
public static void main(String[] args) {
Cat xx = new Cat();
Cat yy = new Cat();//write your code here
}
public static class Cat {
}
}
0
Bryce Lindley
19 January 2019, 03:04
For instance under main class:
Cat Garfield = new Cat();
Create one more like this under main.
The point being you are creating an object from the Cat class. Which is basically a template to build from.
0
suresh rai
9 January 2019, 16:10
you have to create cat object twice with new variable for each
for ex
Cat kitty = new cat();
+1
AK
15 November 2018, 04:46
Cat cat = new Cat();
Cat smiley = cat;
0
Khurram
7 November 2018, 04:21
https://codegym.cc/quests/lectures/questsyntax.level02.lecture03
have you gone through the lesson? it should not be difficult once you have gone through it
0