Object-Oriented Design questions and answers
Classes, interfaces, inheritance and design patterns. Page 4 of 6.
Object-Oriented Design practice on Codemia
Turn requirements into classes, and defend the design, on the problems that come up in OOD rounds.
Answers 181-240
- Mockito.any() pass Interface with Generics
- Most efficient way to cast ListSubClass to ListBaseClass
- multiple packages in contextcomponent-scan, spring config
- Multiple Type Constraints in Swift
- Mutation not killed when it should be with a method with an auto-injected field
- MVC pattern on Android
- MVVM Tutorial from start to finish?
- No qualifying bean of type for JPA repository in Spring Boot
- org.springframework.beans.factory.UnsatisfiedDependencyException Error creating bean with name 'demoRestController
- Overriding an Autowired Bean in Unit Tests
- Overriding superclass property with different type in Swift
- Parameter 0 of constructor in ..... Spring Boot
- Parameter 0 of constructor in required a bean of type 'java.lang.String' that could not be found
- Pass An Instantiated System.Type as a Type Parameter for a Generic Class
- Passing arguments to C generic new of templated type
- Passing Moq mock-objects to constructor
- Pattern for sharing a large amount of data between the web application and a backend service in a Service Oriented Application
- Polymorphism vs Overriding vs Overloading
- Print all the Spring beans that are loaded - Spring Boot
- Property getters and setters
- Protocol can only be used as a generic constraint because it has Self or associatedType requirements
- RabbitMQ with Unity IOC Container in .NET
- Reflection generic get field value
- required a bean of type 'org.springframework.security.core.userdetails.UserDetailsService' that could not be found
- Resource vs Autowired
- Resources about Asynchronous Programming Design Patterns
- Retrieving the inherited attribute names/values using Java Reflection
- Serializable Inheritance
- Serializing private member data
- Should one interface inherit another interface
- Singleton by Jon Skeet clarification
- Singleton with Arguments in Java
- Singletons vs. Application Context in Android?
- Spring-Boot How to properly inject javax.validation.Validator
- Spring Async not allowing use of autowired beans
- Spring Autowired usage
- Spring Beanname name vs Bean Qualifiername
- Spring Boot - inject map from application.yml
- Spring boot - Service class calling another Service class
- Spring Boot 2 - Unsatisfied dependency on Feign client when autowired for service
- Spring Boot autowire beans from library project
- Spring Boot autowired does not work, classes in different package
- Spring boot autowiring an interface with multiple implementations
- Spring Boot can't autowire ConfigurationProperties
- Spring Boot Inherit application.properties from dependency
- spring boot test unable to inject TestRestTemplate and MockMvc
- Spring @Component versus @Bean
- Spring get all Beans of certain interface AND type
- Spring injects dependencies in constructor without Autowired annotation
- Spring Why do we autowire the interface and not the implemented class?
- staticmethod and abc.abstractmethod Will it blend?
- super fails with error TypeError argument 1 must be type, not classobj when parent does not inherit from object
- super in Java
- super raises TypeError must be type, not classobj for new-style class
- Swift class introspection generics
- Swift enum inheritance
- Testing if object is of generic type in C
- The dependencies of some of the beans in the application context form a cycle
- Thread Safe singleton class
- Unable to resolve ILogger from Microsoft.Extensions.Logging

Course
Intermediate
27 lessons
14 hours
OOD Fundamentals
Master object-oriented design from first principles, SOLID, design patterns, and classic interview problems with hands-on coding.
View the course