we cannot override final method but can we do for static method | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

we cannot override final method but can we do for static method

we cannot override final method but can we do for static method

11th Mar 2017, 9:41 AM
Roshan Kumar
Roshan Kumar - avatar
4 Respostas
0
Yes.
11th Mar 2017, 10:29 AM
1of3
1of3 - avatar
0
how can any one explain
12th Mar 2017, 6:50 PM
Roshan Kumar
Roshan Kumar - avatar
0
Both final and static do not allow for overriding, for static, it's because static variables or methods belong to a class rather than a specific instance(quoted from the course) Hoping it was clear.
30th Jun 2017, 8:41 PM
Abdelghani
Abdelghani - avatar
- 1
Yes you can.
11th Mar 2017, 10:35 AM
Vishal Prajapati