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 create a bean using Bean annotation in Spring Boot for abstract class?
- How to deal with a sealed class when I wanted to inherit and add properties
- How to define a List bean in Spring?
- How to define generic type limit to primitive types?
- How to determine if a type implements a specific generic interface type
- How to get bean using application context in spring boot
- How to get the parents of a Python class?
- How to get the type of T from a member of a generic class or method
- 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 print instances of a class using print?
- 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

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