PrepZone Logo
PrepZone
Back to Java

Java · Medium

Can we override private, static, or final methods? Why or why not?

JavaOOPPolymorphism

Answer preview

private methods — No. — Private methods are not visible to subclasses. A subclass can define a method with the same name, but it is a completely separate method — not an override.…