Top "Oop" questions

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

Examples of GoF Design Patterns in Java's core libraries

I am learning GoF Java Design Patterns and I want to see some real life examples of them. What are …

oop design-patterns java
What is the difference between a field and a property?

In C#, what makes a field different from a property, and when should a field be used instead of a …

c# oop properties field
How do you create a static class in C++?

How do you create a static class in C++? I should be able to do something like: cout << "…

c++ oop class syntax static
How should I have explained the difference between an Interface and an Abstract class?

In one of my interviews, I have been asked to explain the difference between an Interface and an Abstract class. …

java oop inheritance interface abstract-class
What is the meaning of single and double underscore before an object name?

Can someone please explain the exact meaning of having leading underscores before an object's name in Python, and the difference …

python oop naming-conventions identifier
When should you use a class vs a struct in C++?

In what scenarios is it better to use a struct vs a class in C++?

c++ oop class struct ooad
C++ error 'Undefined reference to Class::Function()'

I was wondering if anyone could help me out with this - I'm only new to C++ and it's causing …

c++ oop undefined
How do I copy items from list to list without foreach?

How do I transfer the items contained in one List to another in C# without using foreach?

c# oop list foreach copy
How to compare objects by multiple fields

Assume you have some objects which have several fields they can be compared by: public class Person { private String firstName; …

java oop