|
I'm now using NetBeans as my IDE-of-choice, and it has a plugin for UML modeling. In the class diagram, there are model elements known as "Boundary Class", "Control Class", and "Entity Class". However, I can't find a good definition of them, but I did...
Started by Thomas Owens on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Boundary classes are ones at the boundary business entities like "person" and "bank account"
control classes implement some business logic.
These are class stereotypes used in analysis.
|
What is the difference between business class and domain class? What is meant by persistent classes?
What is the difference between business class and domain class? What is meant by persistent classes?
Started by sevugarajan on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
A database) to an in....
It is typically used to map data from your data store (e.g .
My Account (an instance) would have a field saldoA "domain" class is one that models your data.
You'd have a persistent domain class Account.
|
|
If you have several classes where you want them to inherit from a base class for common functionality, should you implement the base class using a class or an abstract class?
Started by Joan Venge on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
Otherwise leave it as a normal ....
This is a situation where the customer must have either a Savings Account or a DebitThat depends, if you never want to be able to instantiate the base class then make it abstract.
class behaviour.
|
Ask your Facebook Friends
|
Be forewarned: This question seems way more obvious than it actually is.
I'd like to write a template that can accept any concrete class or template class as a template parameter. This might seem useless because without knowing whether the passed in T...
Started by Joseph Garvin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This mean that this will work:
template <class T> int f it work, like using;
template <class T> foo { }; typedef foo< int_<4> > my_foo_4 of problems; a class template....
Global scope after which they are used.
|
|
I have this code to represent bank:
class Bank { friend class InvestmentMethod; std::vector<BaseBankAccount*> accounts; public: //...
BaseBankAccount is an abstract class for all accounts in a bank:
class BaseBankAccount { public: BaseBankAccount...
Started by chester89 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
class method GetPortfolio() could returbn a Portfolio object pointer but only for account classes(*this); } }; class IVisitor { public: virtual void VisitAccountTypeA(AccountTypeA& account) = 0; virtual void VisitAccountTypeB....
|
|
Why did the creators of Java use the name "class" for the classes in Java? Where does this term come from?
Answer Snippets (Read the full thread at stackoverflow):
Here is the first....
And then an object is an instance of that type .
I think the name "class" refers to a class of objects, as in a classification (or a type).
Java didn't invent the name class - it was used in languages prior, like C++.
|
|
In C#, I have base class Product and derived class Widget.
Product contains a static method MyMethod().
I want to call static method Product.MyMethod() from static method Widget.MyMethod().
I can't use the base keyword, because that only works with instance...
Answer Snippets (Read the full thread at stackoverflow):
You should have a static method defined in one class is just....
class MyClass : mybaseclass { static void MyMethod() { mybaseclass.BaseStaticMethod(); } }
Having into account that a Static method shoudn't relay in instance data...
|
|
In PHP I know many people will use a class to SET and GET session variables, I am doing this now in many classes, I need to know if I am doing it wrong though.
So for example lets pretend I have A class that need to use this
$session->get('user_id'...
Started by jasondavis on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Adding the variable as a member to your class doesn't really make sense in the OOP way, because it's not a logical, legitimate member of the class....
Prefer giving the function some internal caching before adding a member to your class.
|
|
As the title says, I'm trading my account which i am the only and the original owner to.
It has 10x 85 characters ALL classes! Pvp geared / some pve geared.
4 chars is on Stormscale Horde
5 chars is on Outland Alliance (Both sick pvp servers)
1 char is...
Started by doolandul on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at epicnpc):
Bump If you feel like going for a lesser than rank 1 PvP let me know. .
|
|
I know downcasting like this won't work. I need a method that WILL work. Here's my problem: I've got several different derived classes all from a base class. My first try was to make an array of base class. The program has to select (more or less at random...
Started by Cyprus106 on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Memory for you.)
Casting from a base class to a derived class is a bad code smell in most should invoke a method using the base class pointer, allowing it to be dispatched to the appropriate implementation in the derived class....
|