Android Manager Interview Questions

10,454 android manager interview questions shared by candidates

Create a class hierarchy to classify numeric values with interface Number. Define subclasses WholeNumber and RealNumber. WholeNumber has subclasses EvenNumber and OddNumber. For each integer in the inclusive range 0 to 10 descending, create a new instance of the appropriate number subclass and add it to an STL structure that supports efficient insertion and retrieval. Efficiently iterate your container and print the numeric value and whether the object is an EvenNumber, OddNumber, or RealNumber for each object. Efficiently locate the object with the smallest value not less than 9.5 and print its value. All your interactions with objects should be through the Number interface.
avatar

Android Developer

Interviewed at Garmin

3.7
Jun 15, 2020

Create a class hierarchy to classify numeric values with interface Number. Define subclasses WholeNumber and RealNumber. WholeNumber has subclasses EvenNumber and OddNumber. For each integer in the inclusive range 0 to 10 descending, create a new instance of the appropriate number subclass and add it to an STL structure that supports efficient insertion and retrieval. Efficiently iterate your container and print the numeric value and whether the object is an EvenNumber, OddNumber, or RealNumber for each object. Efficiently locate the object with the smallest value not less than 9.5 and print its value. All your interactions with objects should be through the Number interface.

Viewing 1581 - 1590 interview questions

Glassdoor has 10,454 interview questions and reports from Android manager interviews. Prepare for your interview. Get hired. Love your job.