Object-Oriented Design questions and answers
Classes, interfaces, inheritance and design patterns. Page 2 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 61-120
- Design patterns for tensorflow models
- Difference between <? super T> and <? extends T> in Java
- Difference between abstract class and interface in Python
- Difference between 'cls' and 'self' in Python classes?
- Difference between Inheritance and Composition
- Difference between List, List?, ListT, ListE, and ListObject
- Difference between @Mock and @InjectMocks
- Differences between Sidecar and Ambassador and Adapter pattern
- Discover long patterns
- distributed database design pattern
- Do interfaces inherit from Object class in java
- Do subclasses inherit private fields?
- Does functional programming replace GoF design patterns?
- Does Python have "private" variables in classes?
- Domain events with composite pattern
- Double Checked Locking in Singleton
- DTO and DAO concepts and MVC
- Enterprise Library Unity vs Other IoC Containers
- Enum Inheritance
- Examples of GoF Design Patterns in Java's core libraries
- Explicit casting from super-class to sub-class
- Extending an enum via inheritance
- Extending from two classes
- Extending from two classes
- Failed Autowired of BuildProperties Spring Boot 2.1.5 eclipse
- Field required a bean of type that could not be found. error spring restful API using mongodb
- generic NOT constraint where T IEnumerable
- Generic return type upper bound - interface vs. class - surprisingly valid code
- Generics in C, using type of a variable as parameter
- Get all derived types of a type
- Get lengths of a list in a jinja2 template
- Get type of a generic parameter in Java with reflection
- GetProperties to return all properties for an interface inheritance hierarchy
- Getting Spring Application Context
- Good reasons to prohibit inheritance in Java?
- How can I add to List? extends Number data structures?
- How can I determine whether a Java class is abstract by reflection
- How can I implement ISerializable in .NET 4 without violating inheritance security rules?
- How can I inject a property value into a Spring Bean which was configured using annotations?
- How can I use the repository pattern correctly?
- How do I call a generic method using a Type variable?
- How do I call a parent class's method from a child class in Python?
- How do I call a parent class's method from a child class in Python?
- How do I clone a generic List in Java?
- How do I create beans programmatically in Spring Boot?
- How do I create delegates in Objective-C?
- How do I effectively design my application where most classes depend on ILogger?
- How do I implement IEnumerableT
- How do I make the return type of a method generic?
- How do I prevent the modification of a private field in a class?
- How do you effectively model inheritance in a database?
- How do you find all subclasses of a given class in Java?
- How do you implement the Singleton design pattern?
- How does inheritance work for Attributes?
- How does Python's super() work with multiple inheritance?
- How does Python's super work with multiple inheritance?
- How should I have explained the difference between an Interface and an Abstract class?
- How to Autowire services in SpringBoot
- How to avoid Dependency Injection constructor madness?
- How to consume a Scoped service from a Singleton?

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