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 do I get a PHP class constructor to call its parent's parent's constructor?

I need to have a class constructor in PHP call its parent's parent's (grandparent?) constructor without calling the parent constructor. // …

php class oop inheritance constructor
Abstraction vs Encapsulation in Java

Possible Duplicate: Abstraction VS Information Hiding VS Encapsulation I know this question might have been asked thousands times on this …

java oop concept
Can I extend a class using more than 1 class in PHP?

If I have several classes with functions that I need but want to store separately for organisation, can I extend …

php class oop extends
What is the difference between old style and new style classes in Python?

What is the difference between old style and new style classes in Python? When should I use one or the …

python class oop types new-style-class
Does JavaScript have the interface type (such as Java's 'interface')?

I'm learning how to make OOP with JavaScript. Does it have the interface concept (such as Java's interface)? So I …

javascript oop
Getter and Setter?

I'm not a PHP developer, so I'm wondering if in PHP is more popular to use explicit getter/setters, in …

php oop coding-style
Naming Classes - How to avoid calling everything a "<WhatEver>Manager"?

A long time ago I have read an article (I believe a blog entry) which put me on the "right" …

design-patterns oop naming-conventions naming
What does 'super' do in Python?

What's the difference between: class Child(SomeBaseClass): def __init__(self): super(Child, self).__init__() and: class Child(SomeBaseClass): def __init__(…

python oop inheritance super
Do subclasses inherit private fields?

This is an interview question. Does subclasses inherit private fields? I answered "No", because we can't access them using the "…

java oop inheritance private
Python function overloading

I know that Python does not support method overloading, but I've run into a problem that I can't seem to …

python class oop overloading multiple-dispatch