edison engineering development program interview questions shared by candidates
Given the following terms please draw a logical diagram/hierarchy on the board as you see fit. Dog, Cat, Woof, Animal, Fifi, Run
This tests your knowledge of inheritance and basic object oriented structure.
what was your answer? animal, dog, cat, woof, run,fifi?
The correct answer to this question is as follows: Animal is the base class Animal has the abstract method Run Dog and Cat both inherit from Animal Dog has the method woof Fifi could either be an instance of the dog/cat class or it could be a name attribute.
See Interview Questions for Similar Jobs
- Social Worker
- Pharmaceutical Sales
- Security Guard
- Administrative Assistant
- Human Resource
- Pharmacy Technician
- Account Executive
- Registered Nurse