Its a kind of open-ended question, between a interviewer and interviewee.
Interviewer would like to test your thought process and see how you actually design/code or think when such type of problems come to you, how you decompose such problem in various parts. How actually you convert those parts in objects/classes/functions for its software part ?
You need to have continuous discussion with interviewer to understand the type of elevator or parking lot { e.g. what type of elevator this is, for small building , big building, residential , commercial, for airport , for mall, for two floor building. }
You need to find out what type of software/oo would be helpful for such system.
Eventually interviewer will narrow down the things , and he will ask you some classes/objects/functions for one part or more. { he will see how you use inheritance,polymorphism etc..}
He would like to test your thought process to talk about the problem, also your object oriented design skills..
Read full article from (5) In OO design interview questions, like designing a parking lot or elevator, what are all the things expected by the interviewer? - Quora
No comments:
Post a Comment