Object-Oriented Design questions and answers
Classes, interfaces, inheritance and design patterns. Page 3 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 121-180
- How to inject different services at runtime based on a property with Spring without XML
- How to invoke the super constructor in Python?
- How to make a Generic Type Cast function
- How to make a Java class that implements one interface with two generic types?
- How to make a Java Generic method static?
- How to perform async initalization of lazy injection
- How to reinitialize a Spring Bean?
- How to set Autowired constructor params as requiredfalse individually
- How to structure Machine Learning projects using Object Oriented programming in Python?
- How to use dependency injection with an attribute?
- How to use generic protocol as a variable type
- How to use TensorFlow in OOP style?
- How to write a Singleton in proper manner?
- HttpClientFactory.Create vs new HttpClient
- Implement C Generic Timeout
- Implementing MVC with Windows Forms
- Implementing Singleton with an Enum in Java
- In C, why can''t a Liststring object be stored in a Listobject variable
- In Python, how do I indicate I''m overriding a method?
- Inheriting XML comments from interfaces in C
- Instance attribute attribute_name defined outside __init__
- Interface vs Abstract Class (general OO)
- Internal vs. Private Access Modifiers
- InvalidOperationException Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor
- Is event sourcing an enhanced pattern of choreography-based SAGA pattern?
- Is it a good practice to have logger as a singleton?
- Is it unnecessary to put super in constructor?
- Is List<Dog> a subclass of List<Animal>? Why are Java generics not implicitly polymorphic?
- Is Meyers' implementation of the Singleton pattern thread safe?
- Is MVVM pointless?
- Is there a concept of inheritance for Kubernetes deployments?
- Is there a javadoc tag for documenting generic type parameters?
- Is there a serializable generic Key/Value pair class in .NET?
- Is there a simple, elegant way to define singletons?
- Is there an alternative to bastard injection? AKA poor man's injection via default constructor
- IServiceCollection does not contain a defintion for AddHttpClient
- IUnityContainer.ResolveT throws error claiming it cannot be used with type parameters
- Java Constructor Inheritance
- Java generics T vs Object
- Java Generics With a Class & an Interface - Together
- Java Instanceof and Generics
- Java Multiple Inheritance
- Java Singleton and Synchronization
- Jersey stopped working with InjectionManagerFactory not found
- Limitation with classes derived from generic classes in swift
- make arrayList.toArray return more specific types
- Making certain methods visible only to particular packages
- Meaning of classmethod and staticmethod for beginner
- Microservices inbox-outbox pattern
- Mockito Inject real objects into private @Autowired fields
- Mockito List Matchers with generics
- 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

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