Posts by Iv3rSoN • 91 points
6 posts
-
0
votes1
answer59
viewsQ: How do we know which object another object belongs to?
I’ve tried to come up with a simpler example, so I have a person who has a list of cars. If I have a C1 car, how will I know who it belongs to? public class Pessoa { private String nome; private…
-
3
votes3
answers77
viewsQ: How can I access a subclass method through a superclass-like object
Having an ABC super class public class ABC { int x = 0; public int getABC() { return x; } } public class XYZ extends ABC { int y = 0; public int getXYZ() { return y; } } Instantiating an ABC object…
-
0
votes1
answer40
viewsA: Racket Function - Character comparison from a string
Error is in passing "# a" instead of # a in evaluation: (numCaracter "#\a" "banana" 0 0) However I suggest you do it with an auxiliary function and just send the character and string in the…
functional-programminganswered Iv3rSoN 91 -
0
votes2
answers116
viewsA: Doubt Equation second degree , returns the real and imaginary parts
The ideal is to use modularity, so you can do any calculation and then the selectors, like this: ;; Construtores ;; cria-complexo-rect: real, real -> complexo ;; cria um número complexo dadas…
-
0
votes1
answer28
viewsA: Why am I making a mistake adding two numbers using pointers?
int* adicionar(const int *a, const int *b) { static int c = *a + *b; return &c; } The pointer has an invalid value because you are returning a pointer with a local variable. So the pointed…
-
1
votes1
answer82
viewsA: Is it possible to use SCRUM in closed-scope design?
I have worked on projects without scope/scope, using the SCRUM framework. The important thing is to follow the methodology and all use the same vocabulary. Follow the values, roles, artifact events…