Загрузка...

Using covariant returns when overriding a method. (enthuware.ocajp.i.v8.2.1145)

In this video we are asked which methods correctly override the method in the parent class. Covariant returns, where we return a subtype in the overriding method applies; providing you are returning a type and not a primitive. In addition, you must not reduce the visibility of the method when overriding.

Видео Using covariant returns when overriding a method. (enthuware.ocajp.i.v8.2.1145) автора Гиковская Вечеринка
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять