OOP interview tips
Identify the requirements
Establish classes and relationship
- List all object, and their attribute, mutual relationships
- nouns are object, verbs are the methods
- either abstract class or interface
- include OOD principles
Sequence and activity diagram
- Sequence of event happening
Use Design patterns
Code
- write the bone structure first
Design approach
- Identifying the potential use cases first
- Note down the constraints present in our system
- Keep scalability in mind (such as multi thread)