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
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
13 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
83 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 ...
4
votes
3answers
96 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
20 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 ...
0
votes
3answers
90 views

Is there any difference between object creation and initialization? [on hold]

For example I have class Abc and I have created a default constructor for it. What is difference between these two syntaxes? Abc obj = new Abc(); and new Abc();
2
votes
1answer
25 views

How can I get all the public property values of a 'last descendant' object in php?

The code below makes this easier to explain : <?php class a { public $dog = 'woof'; public $cat = 'miaow'; private $zebra = '??'; } class b extends a { ...
4
votes
2answers
63 views

Covariance and Contravariance with C# Arrays [duplicate]

While reading a section of an article about covariance and contravariance at Wikipedia, I ran into the following, bolded sentence: First consider the array type constructor: from the type Animal ...
1
vote
1answer
42 views

Looking for better design approach -Using c# OOPS,Design patterns

I am looking for the design approach for the below problem. I have a robot , it's duty to clean and return to the intial position(top left) and print the path used to clean the room. It will have a ...
3
votes
5answers
64 views

Passing data between classes / asynchronous requests / iOS

I am converting my application from Syncronous to Asyncronous HTTP requests and have ran into a problem that looks like it will require quite a big reworking of how the application handles it's data. ...
3
votes
4answers
88 views

Designing C++ classes with partly common implementations

I am designing a C++ module. This module can receive 3 different types of requests: Request-A, Request-B and Request-C. For each type, I have a corresponding handler class: RequestHandler-A, ...
3
votes
3answers
90 views

c# extend class by adding properties

Is it possible in c# to extend a class not by adding only functions but properties. Ex: i have a standard dll library I am relying on and the vendor does not want to modify it. Already throughout ...
0
votes
5answers
86 views

PHP OOP & MySQL

I have written a procedural version of a script that will sync an iTunes Library with another drive, in my case a NAS. Chatting with some people at work and they suggested that it might be better, ...
0
votes
0answers
22 views

Circular Dependecy of Pojo in Hibernate project

I typical hibernate pojo class looks public class User { private String username; . . . private Address address; } public classs Address { private String line1 . ...

1 2 3 4 5 1311
15 30 50 per page