Home > Back-end >  The IDEA of how to create inner classes rookie for help.
The IDEA of how to create inner classes rookie for help.

Time:12-05

I'll knock in creating good class directly class seems to not create for help bosses don't know what in

CodePudding user response:

It should be said that how to create inner classes, JAVA IDEA and the eclipse is not the same?
The class Circle {
Double radius=0;

Public Circle radius, (double) {
Enclosing the radius=radius;
}

Class the Draw {//inner class
Public void drawSahpe () {
System. The out. Println (" drawshape ");
}
}
}

CodePudding user response:

reference 1/f, small aircraft response:
should say how JAVA to create inner classes, the IDEA and the eclipse is not the same?
The class Circle {
Double radius=0;

Public Circle radius, (double) {
Enclosing the radius=radius;
}

Class the Draw {//inner class
Public void drawSahpe () {
System. The out. Println (" drawshape ");
}
}
}

Thanks the IDEA there is an option to create inner class but it seems to be out of the bug I create good join internal structure will be prompted to is not an abstract class is fan,,,

CodePudding user response:

In the position of the member variables create classes, which is common inner classes, inner class has many kinds, you create that ordinary inner class

CodePudding user response:

Crab crab is solved or not enough careful

CodePudding user response:

refer to the second floor of 01011 m reply:
Quote: refer to 1st floor small aircraft response:
should say how JAVA to create inner classes, the IDEA and the eclipse is not the same?
The class Circle {
Double radius=0;

Public Circle radius, (double) {
Enclosing the radius=radius;
}

Class the Draw {//inner class
Public void drawSahpe () {
System. The out. Println (" drawshape ");
}
}
}

Thanks the IDEA there is an option to create inner class but it seems to be out of the bug I create good join internal structure will be prompted to is not an abstract class is fan,,,


Bloggers, this shortcut is what ah, I did not find, can be manually to knock at a time...
  • Related