Questions tagged as 'poo'

1
answer

Mold type in Delphi

I need to clarify on the issue of type molds in Delphi. I have written an example with two classes, TClassA and TClassB . TClassB inherit from TClassA . The code is as follows: program TEST; {$APPTYPE CONSOLE}...
asked by 25.08.2016 / 17:50
1
answer

Python: it does not do what I expect it to do

I am learning to program in Python, I am using as a guide "Learn to think like a programmer in Python 2x", and I use Python 3.6. I am in the part of POO classes, methods, attributes, etc; in which he uses as an example a Card Game (the cute o...
asked by 29.12.2018 / 01:23
1
answer

Class with several referenced wcf services

I would like to know if the following is possible: I want to create a class that references several ws and that in the class has the properties that in the majority of the services use the same variables ... public class wsProcedimientos {...
asked by 22.11.2018 / 20:28
2
answers

Doubts about encapsulation and objects in OOP

One of the main characteristics of object-oriented programming is encapsulation, I wonder, should all the properties be set to private? Even the objects? Is there a case in which this can be dispensed with or is it a rule as such in POO? Exam...
asked by 10.11.2018 / 18:00
1
answer

How can I put a JPanel class in a JIntercalFrame?

I have created several JPanel classes and now I want to show them in a JDesktopPane, but in the JDesktopPane you can not open a JPanel, can you? So it occurs to me to call the JPanel class from a JInternalFrame and then call the JInternalFrame t...
asked by 07.12.2018 / 17:19
0
answers

in the value assignment gives me null but in the id I have 1

We are doing a system of a bar in the faculty, all right up here, but when I want to go to modify or eliminate an employee I get an error, in the photos this link link link attached photos of the code WHERE THE ERROR IS JUMPING...
asked by 15.10.2018 / 04:29
0
answers

what is the need to cast a daughter class to a father?

good morning just a question since I do not have the idea of casting an object of the daughter class to a parent class (since the daughter can practically access the properties and methods of the father) I have my father class: package interfa...
asked by 07.10.2018 / 16:52
1
answer

Life time of an object [closed]

I need to do a program with java that creates an object every 30 seconds and puts it in a queue and then does some operations with them. I had thought about creating the object and that creating it would also create a kind of counter, so that wh...
asked by 23.10.2018 / 16:36
2
answers

Redirect to an action or action Javascript PHP

I have this doubt, I want to make a validation if the condition is met, show me an alert and redirect me to a specific page but since I am working in MVC, I must do it through an action: the code I have is the next: <script type="text...
asked by 04.07.2018 / 15:10
1
answer

How to receive data from php to ajax?

I am practicing PHP POO with javascript and ajax, I have my code ready with the sql query: public function SessionStart() { $conexion = $this->conectar(); $sql = "SELECT * FROM usuarios WHERE usuario = ? AND pass = ?";...
asked by 02.07.2018 / 05:47