package com.codegym.task.task02.task0208;
/*
One cat isn't enough
*/
public class Solution {
public static void main(String[] args) {
//write your code here
Cat bella = new Cat();
Cat bimbim = new Cat();
}
public static class Cat {
}
}
Can anybody define "instance" as stated in "Store each instance in its own variable." in simple words ?
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Nitin raj
13 June 2019, 20:17useful
Instance is nothing but object. object and instance is same thing. when you r creating a object of a class means you r creating an instance of type class.
+3
Rafia Rahman Chowdhury
14 June 2019, 14:05
Thanks a bunch!
0