I have to write a visitor design-pattern in which function selection is based on arguments’ type.
-------------
| Visitor |
|-----------|
|Visit(Elt) |
|Visit(EltA)|
|Visit(EltB)|
-------------
|____________________
| |
---------------- ----------------
|...
I have declared two non visual objects:
- uo_food
- uo_goodfood
I’d like to write 2 methods “eat” in a same non visual objects.
How can I do to distinct such call :
public subroutine eat(userobject n) // userobject should be a uo_food type
messagebox("info","food")
end subroutine
and
public...
To specify my question, the use of Design Patterns is established on the dynamic instantiating of objects to allow them to get a real type chosen during the compilation using the heritage tree.
In fact, all this is possible because in languages such as C++ or JAVA, we can call object’s...
I refer the Design Pattern concept such as defined by Christopher Alexander in 70’s and developed by the “Gang of Four” (Erich Gamma, Richard Helm, Ralph Johnson, et John Vlissides). About 23 patterns to use in OOP. So, in fact, I don’t know J2EE technology.
I’m studying the possibility of changing our programming language, so I don’t really know yet all PowerBuilder possibilities.
I wonder if it is possible to use concepts such as Design Patterns in PowerBuilder knowing that all the base is calling constructors in different places by invoking...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.