Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1c0322f

Browse files
author
İSMAİL TAŞDELEN
committed
master
1 parent 147de35 commit 1c0322f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

‎app/Java_Project_77/src/java_project_77/Java_Project_77.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class Java_Project_77 {
1717
public static void main(String[] args) {
1818
// TODO code application logic here
1919
dortgen d1 = new dortgen();
20-
d1.boy=4;
20+
System.out.println(d1.getboy());
2121
}
2222

2323
}

‎app/Java_Project_77/src/java_project_77/dortgen.java‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,18 @@
1111
*/
1212
public class dortgen {
1313
public double en;
14-
public double boy;
15-
public double alan_hesapla(){
16-
return en * boy;
14+
private double boy;
15+
public double getboy()
16+
{
17+
return boy;
18+
}
19+
public void setboy(double x)
20+
{
21+
boy=x;
22+
}
23+
public double alan_hesapla()
24+
{
25+
return en * boy;
1726
}
1827

1928
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /