Questions tagged as 'classes'

2
answers

System Settings in static class in the Entity Framework

I'm trying to create settings for a system. I thought of a class similar to the example: Class: public static class Configuracoes { [DisplayName("Casas Decimais")] [Description("Informa o número de casas decimais que o sistema...
asked by 31.10.2017 / 02:27
2
answers

Accessing objects of a class

class human(object): kind = 'humam' def __init__(self,name, sex, age): self.name = name self.sex = sex self.age = age def report(self): print(self.name) print(self.sex) print(self.age) c...
asked by 28.10.2017 / 03:57
1
answer

Switching screens with the same XML file

I'm developing an educational application (with several java exercises and explanations) for Android, but I have a question: the application becomes very cumbersome if I create an activity (with an XML file) by exercise or screen with explanat...
asked by 05.07.2017 / 03:57
0
answers

How to solve Fat Jar Export: Could not find class-path entry

I'm having serious problems exporting a program made in Eclipse and I'm beginning to hate myself for trying to be organized. I imported two third-party libraries (JavaMail and iText 5) into my project. Their JARs I downloaded from the Interne...
asked by 30.05.2017 / 22:12
0
answers

Slim Class Controller not found

I'm trying to make a model in MVC here, using some controllers. Follow my directories: Root / app / Controller / Padrao.php public / index.php composer.json Home My file index.php (Yes, to leave td mixed, then...
asked by 15.05.2017 / 01:26
0
answers

How to represent a class diagram between Manager and employee

Hello everyone! I have a Food Truck type system and I need to know mainly the relationship of the manager and employee ... Is my diagram correct? Module 1 mainly. • Specification: Manager module I. Creation of an employee (enrollment,...
asked by 26.05.2017 / 01:14
1
answer

How to call Finish () from a separate class?

I have an application where when the user clicks "Back" on the MainActivity it displays a AlertDialog on the onBackPressed() method asking if you really want to quit the application. But I created a new Gerenciar clas...
asked by 23.02.2017 / 14:17
0
answers

Error Class not found with Composer

Well, folks, I'm doing a project here and giving me some problems, I think I'm mixing things up. I installed the composer to use autoload and other dependencies, but now I have a problem: The error you give me is as follows: Fatal error:...
asked by 18.02.2017 / 21:02
0
answers

Object Orientation in PHP, example crud with ajax [closed]

I'm trying to learn PHP Object Oriented, however I'm having trouble finding an example. Can someone show a simple example of the crud case below: A class in php, for example, user, in this class has methods that return the user by id. Al...
asked by 20.01.2017 / 12:43
1
answer

Infinite Loop in Exercise Using Classes

I'm doing an exercise in Python, which is a game using classes. It happens that when you get into the "EscapePod ()" room and select the correct POD, the looping becomes infinite, not the reason. from sys import exit from random import randint...
asked by 26.06.2016 / 17:22