Questions tagged as 'classes'

1
answer

How to duplicate display of HTML elements

I have 5 images, 3 of them have the same class being displayed in div A. <div id='A'> <img src="https://sites.google.com/site/mplayerplugin/thumbnails/09.jpg"class="figura" /> <img src="https://sites.google...
asked by 25.03.2017 / 11:48
1
answer

How to represent a relationship N: N in java?

I think it's a simple question, but I could not find any examples that would make that clear. I have already done my database model in PostGreSQL and at the time of creating the classes I got a little lost. I have List entities (stores user's fa...
asked by 16.10.2016 / 01:51
1
answer

Doubts about class usage

Well, guys, good morning. How are you? I am writing a windowsform application, and in some situations I need to do multiple queries, insert and delete .. well, then I created a query class, a delete class and an insert class, where all my queries...
asked by 19.07.2016 / 12:29
2
answers

Problems in a crud class

I'm trying to build a class to be used with mysql at first I have only two files so I'll paste the code I've already done here and explain my doubts. classes/connect.php <?php /** * Created by PhpStorm. * User: evtns * Date: 08/06/2016...
asked by 11.06.2016 / 01:35
1
answer

Is there a way to create a private class in C ++?

I wanted to create a class where it could be accessed in the library I created, how can I declare the class as private and can be called only in the library?     
asked by 17.09.2016 / 00:43
1
answer

How do I get the return of a method that depends on another within a class?

I'm using a class called Semelhantes which will have 2 methods. The features takes 3 characteristics of the current property through id . resemblant mounts a query that aims to bring real estate that looks li...
asked by 06.01.2016 / 23:28
1
answer

Generic vector with error

I'm completing this generic vector activity, however I'm having trouble returning the last and the first element of the list. and to remove the element. public class Vetor<T>{ T[] vetor; int qntElementos = 0; public Vetor(i...
asked by 06.05.2016 / 19:16
1
answer

How do I concatenate a variable in a class with a static function?

I have a problem, I have a function that, when I pass the card number, returns the name of the flag (visa, mastercard etc) And I need to return the flag name inside a static function $bandeira = getBandeiraByNumber("55523131232131"); retor...
asked by 09.05.2016 / 19:31
2
answers

I define a value in a class, when I instantiate it, the value is another

This is the code where I defined a class Animal and a creator method that asks the species of the animal and defines its state as alive: public class Animal { public bool estaVivo, usaDrogas = false; string E...
asked by 27.09.2015 / 03:37
1
answer

Get self variables from another class and custom event

Read only comments in Portuguese, the question of self is in comments in the code, now the events will be down there. class LOL: class Champions: class MasterYi: def __init__(self): #YiAttributes...
asked by 02.01.2015 / 14:11