Microsoft Interview Question for Interns


Team: Microsoft Ireland intern recruitment team
Country: Ireland
Interview Type: Written Test




Comment hidden because of low score. Click to expand.
2
of 2 vote

1. I would use an abstract class for SPACE and then specialize it to concrete classes APARTMENT, STORE, OFFICE and what not.
2. FLOOR will be another class that will be composed of collection of SPACE objects.
3. BUILDING will also be a class and will be composed of collection of FLOOR objects.

In order to properly identify properties and methods I need to know what is the purpose of this design? What functionality are we intending to provide?

- Epic_coder June 19, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

You better sit relax back .... have pencil and book ...
then draw ER diagram then start design skeleton of class structures and it's services ;)

- Debasis Jana June 19, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

building class with properties like Street address, # of total properties in the building, parking space, No. of parking places available to rent, etc..Child classes derived from building classes like Apartment, Store, Office, etc.. Each one having Suite no, monthly maintenance cost and a constructor which checks with total # of properties available in apartment before creating instance of property. Apartment class has properties like # of bedrooms. When each time constructor is called to reserve a new property in the building,

- Parin September 02, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More