Dear Sir, Can you please explain me why is the setDepartment() not valid for statment " Employee emp2= new Manager();". Why is it not taking the vaue that is given in the TestManager class.Sir can you please tell me about the exam after this course?Hoping at the earliest!Thanks!
Inside of the TestEmployee class, after making changes in line of println() method. It shows red line below manager getDetails . My output shows error.Syntax error on token "manager",delete this tokenThe method get details() is undefined for the type StringAt TestEmployee.main(TestEmployee.java:10)As shown in other tutorial videos, I think something is missing in that line or may be not visible in that video at that time.
16320 visits
Outline:Polymorphism in Java Run-time polymorphism Virtual Method Invocation Compile-time polymorphism Role of JVM What is IS-A test? What is Static binding? What is Dynamic binding?
Polymorphism in Java Run-time polymorphism Virtual Method Invocation Compile-time polymorphism Role of JVM What is IS-A test? What is Static binding? What is Dynamic binding?
Show video info
Pre-requisite