Top "Oop" questions

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

How to get a JavaScript object's class?

I created a JavaScript object, but how I can determine the class of that object? I want something similar to …

javascript oop
When to use self over $this?

In PHP 5, what is the difference between using self and $this? When is each appropriate?

php class oop scope
Interface vs Abstract Class (general OO)

I have had recently two telephone interviews where I've been asked about the differences between an Interface and an Abstract …

oop interface abstract-class
How to call a parent class function from derived class function?

How do I call the parent function from a derived class using C++? For example, I have a class called …

c++ oop inheritance
How to call a Parent Class's method from Child Class in Python?

When creating a simple object hierarchy in Python, I'd like to be able to invoke methods of the parent class …

python class oop object inheritance
Meaning of @classmethod and @staticmethod for beginner?

Could someone explain to me the meaning of @classmethod and @staticmethod in python? I need to know the difference and …

python oop static-methods class-method
What is the difference between an abstract function and a virtual function?

What is the difference between an abstract function and a virtual function? In which cases is it recommended to use …

oop language-agnostic abstract virtual-functions
How to sort a list of objects based on an attribute of the objects?

I've got a list of Python objects that I'd like to sort by an attribute of the objects themselves. The …

python list sorting oop count
What is Inversion of Control?

Inversion of Control (IoC) can be quite confusing when it is first encountered. What is it? Which problem does it …

oop design-patterns inversion-of-control
What is the difference between public, private, and protected?

When and why should I use public, private, and protected functions and variables inside a class? What is the difference …

php oop private public protected