Please enable JavaScript.
Coggle requires JavaScript to display documents.
OOPS Concepts - Coggle Diagram
OOPS Concepts
Method Overriding
Overridden method access type can be checked but only to lower access, like protected to public is fine but protected to private is not fine
-
Static methods can't be overridden, it will give compile time error
-
-
Covariant Return Type : From Java 5 onwards the child class overridden method can have a different return which would have to be a subtype of the actual return type
-
-
-
Method Overloading
-
-
-
method name is same, only change the parameter number, parameter type or both
-
-
-
-
-
-