For example, in the following
class Base { def test() { def internal() { println("base internal") } } }
Is it possible for an internal record to be overwritten in a subclass?
Not. Internal methods are virtually confidential.
To complete Daniel's answer: if you want to override the internal method, you must declare it as protected directly under Base .
internal
protected
Base
In fact, the internal method can be considered as a block of the method itself.
Source: https://habr.com/ru/post/896019/More articles:testing robotic latency between each click - androidSQL Query for YTD, MTD, WTD totalals - dateDisplay values ββin binary heap in sorted order using width search? - heapIs it possible to use batman.js with an expression? - javascriptGood web server / servlet container for Clojure web applications? - javaAdding an offset to a pointer - c ++Backup database uses crontab with date function - linuxjQuery: get source selector - javascriptHow to avoid Xcode debugger for entering std system headers? - c ++vim file specific .vimrc - vimAll Articles