Tagged Questions
5
votes
5answers
458 views
Is there any difference between pointers and references? [duplicate]
References and pointers do the same thing as I know. Is there any difference between them?
If there is no difference, why we call them reference not pointer?
3
votes
2answers
271 views
Object-Oriented Programming: Why “Oriented”?
I am most of the way through my games programming degree. This is not a computer science degree, so a lot of the theory is eschewed in favour of practical portfolio building and what I see as JIT ...
5
votes
4answers
268 views
Umbrella term for classes that all serve another class
I'm looking for an umbrella term for classes which are separated from a main class in order to achieve necessary encapsulation and keep main class reasonably sized.
E.g. each blog post is an ...
0
votes
3answers
211 views
should I extend or create instance of the class
I have two classes
Class A and Class B
in Class A, i have three methods that perform the save, delete and select operation based upon the object I pass them. in Class B I perform the logic operations, ...
12
votes
5answers
567 views
What is considered third party code?
Inspired by this question Using third-party libraries - always use a wrapper?
I wanted to know what people actually consider as third-party libraries.
Example from PHP:
If I'm building an application ...
10
votes
5answers
802 views
Formal definition for term “pure OO language”?
I can't think of a better place among SO siblings to pose such a question. Originally I wanted to ask "Is python a pure OO language?" but considering troubles and some sort of discomfort people ...
3
votes
5answers
589 views
What's the equivalent name of “procedure” in OOP?
In several of my programming courses in the University, my teachers always told me the following:
A function and a procedure are basically the same thing: the only difference is that a function ...
60
votes
12answers
3k views
Name for this antipattern? Fields as local variables
In some code I'm reviewing, I'm seeing stuff that's the moral equivalent of the following:
public class Foo
{
private Bar bar;
public MethodA()
{
bar = new Bar();
...
8
votes
7answers
902 views
Difference between Pattern and Principle
What is the difference between Object Oriented Design Patterns and Principles? Are they different things? As far as I understood both of them try to achieve some common goal (e,g. flexibility). So can ...
4
votes
4answers
275 views
what is the term for the class in the bottom of a class hierarchy?
You have a class hierarchy:
D extends C which extends B which extends A, for example.
A would be the top class, but how about D?
I am looking for a short and concise way of describing the position ...
1
vote
2answers
314 views
What is classic object oriented programming?
I heard the phrase classic object oriented programming. Is it different from present object oriented programming, like classic ASP and ASP.net?
5
votes
3answers
318 views
Is there a specific term for an accessor method that returns a boolean value?
I seem to recall that there is a specific term for an accessor method that returns a Boolean value but it escapes me. For example: typical methods such as:
class Example {
bool isDirty();
...
8
votes
2answers
549 views
What is the name for the programming paradigm characterized by Go?
I'm intrigued by the way Go abandons class hierarchies and seems to completely abandon the notion of class in the typical object oriented sense. Also, I'm amazed at the way interfaces can be defined ...
-5
votes
4answers
749 views
What is Interface in Java programming language? [duplicate]
Last week my lecturer was teaching us about interfaces in Java.
However, I failed to understand her explanation that well.
Does anyone have a good description, or explanation of Java interfaces, and ...
1
vote
2answers
188 views
What it is a data structure of a certain type called?
I'll try to keep this as much language agnostic as I can but I'll give the examples in C# since I now know how to solve it that language.
The question came to mind when I was thinking of how could I ...
4
votes
8answers
728 views
What is the term that describe objects representing both logic and data?
The reason I am asking this question is I want to know how to properly call an architecture where classes have either data or logic but not both. I know this goes against object orientation and ...
4
votes
4answers
4k views
What does “S” stands for in OOPS?
I have searched for the full form of "OOPS" in Google, but unfortunately, there are many ambiguous answers. Some say it's "Systems", and some say it's "Structure", and some have even mentioned it as ...
13
votes
3answers
692 views
Pure virtual or abstract, what's in a name?
While discussing a question about virtual functions on Stack Overflow, I wondered whether there was any official naming for pure (abstract) and non-pure virtual functions.
I always relied on ...
8
votes
12answers
11k views
How to explain OOP concepts to a non technical person?
I often try to avoid telling people I'm a programmer because most of the time I end up explaining to them what that really means. When I tell them I'm programming in Java they often ask general ...
9
votes
1answer
790 views
What's OOPS? Is that term in use? [closed]
Today, on StackOverflow I came across the term / tag OOPS, and it made me wonder: what's the S? Yes, I do of course know what OOP means, but is there a formal meaning for the S? Or is it used as a ...