У меня есть класс Child , который расширяет Parent .
Child
Parent
Parent child = new Child(); if (child instanceof Parent){ // Do something }
Возвращает true или false, и почему?