Skip to content
Thiết kế websiteThiết kế website
Does subclassing int to forbid negative integers break Liskov Substitution Principle?
08/11/2022

In Python 3, I subclassed int to forbid the creation of negative integers:

...

What’s the right data structure to combine iteration of key-value pairs, and iteration of values
04/11/2022

I'm looking for a pre-existing or easy-to-build data structure available in Java, which can do ...

Can you implement “object-oriented” programming without the class keyword?
04/11/2022

Say we want to provide an abstraction of an "account" in a bank. Here's one ...

Should I prefer composition or inheritance in this scenario?
04/11/2022

Consider an interface:

...

Inheriting and storing objects that contain different types of other objects
04/11/2022

To start off, this is more of a best-practice question than anything.

...

Deserializing an object at beginning of program which is used (much) later
04/11/2022

I am writing a program, where in the beginning of the execution, I am instantiating ...

Ways to avoid using switches to map strings to classes
04/11/2022

I have a C# solution that reads records from a db and processes them into ...

“Correct” way to use inheritance
04/11/2022

Within a small project, a class Storage is meant to store any type of Item. ...

Inefficient use of interfaces in OOP (C#)
04/11/2022

In my code, I've got two interfaces, let's say IOpenable and IExaminable. IOpenable allows the ...

How to reference one object with two interfaces? [duplicate]
04/11/2022

This question already has answers here: Empty interface to combine multiple interfaces (4 answers) Closed ...

  • 1
  • 2
  • 3
  • 4
  • …
  • 37
Bản quyền © 2022 Thiết kế website giá rẻ . Thiết kế bởi Haravy - Software
  • TRANG CHỦ
  • TIN TỨC
  • LIÊN HỆ
  • WooCommerce not Found
    • Hình thức trả