+ 1
How many type in inner-classses?(like static member class)
3 Respostas
+ 1
there are two types of inner class as normal class and anonymous clasd
+ 1
class Hand {
public class Person{
public void shake()
System.out.println("Hi");
}
}
0
Rearrange the code to have an inner class Hand, which has a method called "shake" that prints "Hi".
System.out.println("Hi"); }
} }
class Hand {
public class Person {
public void shake() {