python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How can I make this small pseudocode comply with Liskov principle?
Keeping things tidy and simple, here is my initial Java pseudocode as an example:
public abstract class Vehicle {
private String owner;
private id plate;
public removeVehicle()...
BadProgrammer
Votes: 0
Answers: 1
C++ How can I combine and add functionality to the same inherited method by a class with multiple inheritance?
So say I have the class empire. empire inherits populationContainer and landContainer as such:
class empire : public populationContainer, public landContainer
Both of those parent classes have the me...

Justin Iaconis
Votes: 0
Answers: 3
How to avoid if..else(or any conditionals) while deciding which method to be called?
How to follow Open Close Principle without violating LSP while deciding which method to be invoked with different parameters in a statically typed language?
Consider the requirement like
Action 1: pe...

Mani
Votes: 0
Answers: 2