Top "Oop" questions

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

Why do I get an error instantiating an interface?

I have a class and an interface, and when I try to instantiate the interface, I get an error: Cannot …

c# oop class interface instantiation
How do I declare class-level properties in Objective-C?

Maybe this is obvious, but I don't know how to declare class properties in Objective-C. I need to cache per-class …

objective-c cocoa oop
What is the definition of "interface" in object oriented programming

Ok, a friend of mine go back and forth on what "interface" means in programming. What is the best description …

oop interface definition
JavaScript override methods

Let's say you have the below code: function A() { function modify() { x = 300; y = 400; } var c = new C(); } function B() { function …

javascript oop overriding
An object reference is required to access a non-static member

I'm having this error come up and I'm not sure why... I've tried to look it up, people are saying …

c# .net oop member static
best way to create object

This seems to be very stupid and rudimentary question, but i tried to google it, but couldn't a find a …

c# .net oop constructor instance
Why should I prefer to use member initialization lists?

I'm partial to using member initialization lists with my constructors... but I've long since forgotten the reasons behind this... Do …

c++ oop object-construction
Java Multiple Inheritance

In an attempt to fully understand how to solve Java's multiple inheritance problems I have a classic question that I …

java oop multiple-inheritance diamond-problem multiple-interface-implem
Monad in plain English? (For the OOP programmer with no FP background)

In terms that an OOP programmer would understand (without any functional programming background), what is a monad? What problem does …

oop functional-programming monads
Modelling an elevator using Object-Oriented Analysis and Design

There are a set of questions that seem to be commonly-used in interviews and classes when it comes to object-oriented …

oop design-patterns language-agnostic