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 can I create a copy of an object in Python?

I would like to create a copy of an object. I want the new object to possess all properties of …

python oop object copy
What is the best method to merge two PHP objects?

We have two PHP5 objects and would like to merge the content of one into the second. There are no …

php oop object
Should we @Override an interface's method implementation?

Should a method that implements an interface method be annotated with @Override? The javadoc of the Override annotation says: Indicates …

java oop interface annotations
Iterate over object attributes in python

I have a python object with several attributes and methods. I want to iterate over object attributes. class my_python_…

python oop attributes iteration
String, StringBuffer, and StringBuilder

Please tell me a real time situation to compare String, StringBuffer, and StringBuilder?

java string oop stringbuilder
Chain-calling parent initialisers in python

Consider this - a base class A, class B inheriting from A, class C inheriting from B. What is a …

python oop inheritance constructor
When should you use 'friend' in C++?

I have been reading through the C++ FAQ and was curious about the friend declaration. I personally have never used …

c++ oop encapsulation friend
How do you implement a class in C?

Assuming I have to use C (no C++ or object oriented compilers) and I don't have dynamic memory allocation, what …

c class oop embedded
Is there more to an interface than having the correct methods

So lets say I have this interface: public interface IBox { public void setSize(int size); public int getSize(); public int …

java oop language-features interface
How abstraction and encapsulation differ?

I am preparing for an interview and decided to brush up my OOP concepts. There are hundreds of articles available, …

c# oop encapsulation abstraction