Top "Oop" questions

Object-oriented programming is a programming paradigm using "objects": an encapsulation consisting of data fields and methods together with their interactions.

Difference between Encapsulation and Abstraction

I had an interview today. I had a question from OOP, about the difference between Encapsulation & Abstraction? I replied …

oop encapsulation abstraction
JavaScript OOP in NodeJS: how?

I am used to the classical OOP as in Java. What are the best practices to do OOP in JavaScript …

javascript node.js oop inheritance mongoose
C# : assign data to properties via constructor vs. instantiating

Supposing I have an Album class : public class Album { public string Name {get; set;} public string Artist {get; set;} public …

c# oop constructor properties
When to use 'raise NotImplementedError'?

Is it to remind yourself and your team to implement the class correctly? I don't fully get the use of …

python oop
What is difference between functional and imperative programming languages?

Most of the mainstream languages, including object-oriented programming (OOP) languages such as C#, Visual Basic, C++, and Java were designed …

oop functional-programming
difference between variables inside and outside of __init__()

Is there any difference at all between these classes besides the name? class WithClass (): def __init__(self): self.value = "Bob" …

python class oop constructor
Why is there no multiple inheritance in Java, but implementing multiple interfaces is allowed?

Java doesn't allow multiple inheritance, but it allows implementing multiple interfaces. Why?

java oop inheritance interface language-design
What is the __del__ method, How to call it?

I am reading a code. There is a class in which __del__ method is defined. I figured out that this …

python oop
Why are unnamed namespaces used and what are their benefits?

I just joined a new C++ software project and I'm trying to understand the design. The project makes frequent use …

c++ oop namespaces
How to check if an object implements an interface?

How to check if some class implements interface? When having: Character.Gorgon gor = new Character.Gorgon(); how to check if …

java oop interface