forked from Bedirhangndnr/Java_OOP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotlar.txt
More file actions
32 lines (19 loc) · 1.03 KB
/
Copy pathNotlar.txt
File metadata and controls
32 lines (19 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
public final doubla hesapla(double Carp)
Seklinde bir ifade kullanılırsa, fşnal kelimesi, bu hesapla() fonksiyonun override edilemeyeceğini söyler.
Base class içinde şu varsa;
-----------------------------------------------------------------------
public abstract class GameCalculator {
public void hesapla(){
System.out.println("Puanınız:100 | Base");
}
}
-----------------------------------------------------------------------
bu fonksiyonu her child calssta override etmek istiyorsak, Şöyle yazarız
-----------------------------------------------------------------------
public abstract class GameCalculator {
public abstract void hesapla();
}
-----------------------------------------------------------------------
Ve bu "hesapla()"medodunun içi dolması gerektiğinden asla newlenemez
STATİC STATİC STATİC STATİC STATİC STATİC STATİC STATİC STATİC STATİC STATİC STATİC STATİC STATİC
Staticleri genellikle, uygulamalın içinde utulisi dediğimiz araçları yazarken kullanırız. örneğin...