In a Delphi application we are working on we have a big structure of related objects. Some of the properties of these objects have values which are calculated at runtime and I am looking for a way to
Example: class UserStorage { public function addUser(User $user) { //save开发者_如何学JAVAs to db }
I have an object called Parameters that gets tossed from method to method down and up the call tree, across package boundaries. It has about fifty state variables. Each method might use one or two var
My situation is best described with a bit of code: class Foo { function bar () { echo \"called Foo::bar()\";
I posted earlier (OOP in C, implementation and a bug) about my attempt with OOP in C, however as I\'m still a new to C, there are a lot of gray areas that are resulting in code issues. I have since tr
I am just starting to model the data for a new C# project, which must be persistable. Looks like the most natural OO model will have lots of nested .Net generics. Lists of objects, and these objects
I\'m new to OOP, 开发者_如何学运维so please bear with me if this is a simple question. If I create a class, which has attributes \"a\", \"b\", and \"c\", is it possible for the attributes to be an arr
ive got a user class where i can get the name, date of birth etc of the user... (below) class user { private $id;
I\'m thinking of writing a CLI Monopoly game in Ruby. This would be the first开发者_JS百科 large project I\'ve done in Ruby. Most of my experience in programming has been with functional programming l
I often find myself reading books and articles that outline patterns, best practices, and how to write \"clean code.\" However, some of these concepts just seem to be over engineered and at times obsc