Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
19
Task/Classes/Java/classes-1.java
Normal file
19
Task/Classes/Java/classes-1.java
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
public class MyClass{
|
||||
|
||||
// instance variable
|
||||
private int variable; // Note: instance variables are usually "private"
|
||||
|
||||
/**
|
||||
* The constructor
|
||||
*/
|
||||
public MyClass(){
|
||||
// creates a new instance
|
||||
}
|
||||
|
||||
/**
|
||||
* A method
|
||||
*/
|
||||
public void someMethod(){
|
||||
this.variable = 1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue