Object-Oriented Design questions and answers
Classes, interfaces, inheritance and design patterns. Page 1 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 1-60
- Distributed System Design Patterns
- Abstract class in Java
- Abstract methods in Python
- Access private field of another object in same class
- Accessing ASP.NET Core DI Container From Static Factory Class
- ActionT vs Standard Return
- Adding List<T>.Add another list
- Anyone know a good workaround for the lack of an enum generic constraint?
- Are static methods inherited in Java?
- Argument of type 'awaited T' is not assignable to parameter of type 'T
- Async tasks and Simple Injector Lifetime scopes
- Asynchronous programming design pattern
- Asynchronous Web Request, EntityFramework, and DI, how does it work?
- At runtime, find all classes in a Java application that extend a base class
- Autofac Registering an Async Factory method
- Autowired says field injection not recommended
- Base constructor in C - Which gets called first?
- Best way of handling entities inheritance in Spring Data JPA
- Boxing and unboxing with generics
- c calling endinvoke in callback, using generics
- C non-boxing conversion of generic enum to int?
- Call parent method from child class c
- Calling a base class's classmethod in Python
- Calling parent class __init__ with multiple inheritance, what''s the right way?
- Calling the base constructor in C
- Can a CSS class inherit one or more other classes?
- Can an interface extend multiple interfaces in Java?
- Can I pass constructor parameters to Unity's Resolve method?
- Can overridden methods differ in return type?
- Can we instantiate an abstract class?
- Can you explain Liskov Substitution Principle with a good C example?
- Can you find all classes in a package using reflection?
- Can you use Autowired with static fields?
- Can you write virtual functions / methods in Java?
- Cannot Inject Dependencies into ASP.NET Web API Controller using Unity
- Can't Autowire Repository annotated interface in Spring Boot
- Cast ListT to ListInterface
- Cast Object to Generic Type for returning
- Chain-calling parent initialisers in python
- Check if a Class Object is subclass of another Class Object in Java
- Class does not implement its superclass's required members
- Class does not implement its superclass's required members
- Class inheritance in Python 3.7 dataclasses
- Class with single method -- best approach?
- Clean pattern to manage multi-step async processes on a tree
- CollectionT versus ListT what should you use on your interfaces?
- Confusion about Message Bus / Command Dispatcher patterns
- Consider defining a bean of type in your configuration
- Consider defining a bean of type 'package' in your configuration Spring-Boot
- Consider defining a bean of type 'service' in your configuration Spring boot
- Could not autowire fieldRestTemplate in Spring boot application
- Could not autowire fieldRestTemplate in Spring boot application
- Could not load file or assembly Microsoft.Extensions.DependencyInjection.Abstractions, Version1.1.0.0
- Create a new instance of component in Spring Boot/Framework
- Create instance of generic type whose constructor requires a parameter?
- C's equivalent of Java's ? extends Base in generics
- Design pattern for checking asynchronous task dependencies before execution
- Design pattern to limit access to a shared resource
- Design Patterns Factory vs Factory method vs Abstract Factory
- Design patterns for converting recursive algorithms to iterative ones

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