FAQ Database Discussion Community


What is the difference between these two c# abstract classes? [closed]

c#,abstract-class,object-oriented-analysis
So I was following a c# tutorial the otherday (still a begginer) and I saw how the class ATMState was defined: public abstract class ATMState { private ATM atm; public ATM Atm { get { return atm; } set { atm = value; } } private int dummyCashPresent = 1000;...

Where in the object-oriented design process is an architecture pattern chosen?

oop,design-patterns,architecture,object-oriented-analysis
Most object oriented analysis and design books and resources describe the process where the analysis phase is followed by identifying classes. I understand that experience will often give you an idea of which architecture (if any) you should apply but is there a specific point in the object oriented design...

How to extract data from this object?

javascript,object-oriented-analysis
I am working on some legacy code for my workplace and cannot figure out how to process data from a data object that is returned. The retrieveThis function is supposed to retrieve the object data: myObj.retrieveThis(new myObj.getThisData({num : 10, page : 1, sorting : "stampDescending"}), function () {myCallback(this);}); var myObj...

C++ class with selectable properties

c++,oop,object-oriented-analysis
I'm writing a graph library and as an example I have a special class for an Edge. This class has some properties besides source (Vertex) and target (Vertex) like for example weight (double), reliability (double), delay (double), presence (double) etc. The thing is however that I do not always need...

Design suggestion: Changing the class behaviour

java,design,object-oriented-analysis
Below I am trying to explain the problem with an example. We have a Caller.java Caller.java : which calls the series of Actors to perform certain steps in sequence. Actor.java : Abstract class containing action() method ActorOne.java : Implements the action() method ActorTwo.java : Implements the action() method ActorThree.java :...

Modifying javascript class attributes

javascript,object-oriented-analysis
What i am trying to do here is, I have the following class Session function Session(){ this.accounts = {}; this.setupAccounts = function(res){ this.accounts = res; log(res); log(this.accounts); }; this.test = function(){ log(this.accounts); }; } The class Session has an attribute accounts, which will keep store certain data. But in order...

Adding object members to business entities in OOD

oop,object-oriented-analysis
I have 2 business entities (objects): Product and Order. The Product object contains a "Name" property in addition to some other properties. The Order entity contains "Id, Date ... etc" properties in addition to a property that points to Product (assuming that an order can have only one product for...

How to organize object repeated in various classes? Java

java,class,object-oriented-analysis
I'm developing a basic card game in Java, and I've prepared a set of Managers subclasses that interact between themselves (like PlayerManager interacting with DeckManager) However, to achieve this I would need to put a Manager inside every class that needs it. So, for example: if PlayerManager needs to a...

Splitting big classes with Inner classes in Java

java,android,inner-classes,packaging,object-oriented-analysis
I am working on an Android project. I have searched high and low but I can't figure out a good strategy to split and package my code. There are tons of posts on how to split based on MVC, but my problem is that I have Inner Classes that use...

java : How do you create a function that increments a variable that isn't accessible from outside the function?

java,object-oriented-analysis
How do you create a function that increments a variable that isn't accessible from outside the function in java? I understand this is one of the principles in object oriented design. I am a new programmer trying to learn...

How to model an object oriented design in a database?

mysql,database,data-modeling,object-oriented-analysis,object-oriented-database
Suppose we have three concepts as bellow: Concept ( attribute1, attribute2, .. ) A ( a, b, c, d ) B ( a, b, c, d, e ) C ( a, b, c, d, f ) There are three options to model these three concepts in the database: 1) To...