- final is another keyword can be used in 3 different ways: 1-before a variable, 2-before a method, 3-before a class
- if it is used before a variable, no one can modify it. that variable changes to a constant. eample; final int x = 100;
- if it is used before a method no one can override the method. overloading is possible but overriding is not possible
- if final keyword used before a class that class can not be extend
فریبا
یکشنبه 15 مردادماه سال 1391 ساعت 08:20 ب.ظ