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

learn more… | top users | synonyms (5)

0
votes
1answer
7 views

Does a Normalized Class Design Lead to a Normalized Database Design

Motivation: I am a solo developer so I take all kinds of roles during development from programming to UI design to database design, etc. (it is pretty exhausting). We all know that one person can't be ...
-2
votes
0answers
25 views

Event and Participant in OOP JAVA

An Event object has two type of event:Talk and Workshop. A Participant object has two types of participant:member and Nonmember. In a talk can have many different participants,then how to declare the ...
0
votes
0answers
29 views

Design patterns - Difference between Adapter and Bridge?

I'm reading GoF's Design Patterns and I'm stuck at the Bridge pattern. I can't help but notice it's very similar to the Adapter pattern and I've tried understanding the difference between the two by ...
-1
votes
2answers
48 views

Trying to convert diagram of a chess game to java code (abstract)

I am attempting to convert this diagram in to java code just to get a hang of design questions that can be asked. For instance the Piecetype enum i would write as public enum PieceType{ pawn, ...
0
votes
2answers
24 views

JavaScript OOP beginner: self executing function passing object after condition

I have come across a self executing function that executes on a condition that the declared containing var exists, and if it doesn't exist it is passed an object. example: var myFunc = ...
2
votes
2answers
43 views

Which thread is responsible for what in Java

If i create a two objects that are run to two different threads in Java. If one of the objects calls a method in another object. Is the method run in the thread of the object that calls the method or ...
0
votes
4answers
74 views

why we use interface as abstract class also doing same? [duplicate]

In my project I have all virtual methods.so I can declare it in abstract class or in interface.But Why we user interface as same we can do with abstract?
0
votes
3answers
63 views

Print class using format string

In my code, I just print the same object using format string. However, the result is not same. By my insight, I thought result should be 97 97 97, but the outcome is 97 98 99. What happened with the ...
-5
votes
3answers
49 views

Handle relational data in classes without use of database [on hold]

I have some relational data i.e. source (having many categories) categories (having many products) products Now, how can I handle this using classes in c# ?
0
votes
1answer
30 views

overidding Pythons __eq__ method , isistance & eq mothods return false

I'm new to Python from the Java world. I have written a Python class called "Instance" with 3 properties(attribute, value, and class). I want to override the "eq" method & also the "hash" method, ...
0
votes
0answers
14 views

Issue with lazy loading and inheritance in NHibernate

I have the following scenario in a C# application using NHibernate: public abstract class A { public virtual int SomeProperty { get; protected set; } public abstract void ...
2
votes
2answers
38 views

OOP jQuery Plugin elem undefined in one place and not in others

How is my element undefined if I clearly define it here. It works in all the other methods but with exception of setUpCalendar(). I've included the "path" the code goes through before reaching the ...
2
votes
5answers
89 views

When to use static method and field?

I know what static is, but just not sure when to use it. static variable: I only used it for constant fields. Sometimes there are tens of constants in a class, so using static constants can save lots ...
5
votes
3answers
113 views

Dynamic method dispatching in C

I know it sounds silly and i know that C is not an Object Oriented Language. But is there any way that dynamic method dispatching can be achieved in c? Ii thought about function pointers but don't ...
0
votes
1answer
24 views

Standard for setting properties of existing object with PDO

I have a class in the model part that picks a data mapper, in my case I am concerned about an sql database and setting properties of an existing object. So currently I am doing this to make my ...

1 2 3 4 5 1311
15 30 50 per page