Questions tagged as 'classes'

0
answers

Is there anything that takes the CSS path? [closed]

I need something that will cause me to reference the path of CSS faster, like a feature in Google's inspection, because it's tricky to find out hundreds of% of divs sequences within divs . Type something to give me the ready p...
asked by 14.09.2016 / 02:44
3
answers

Is an interface a variable?

I have some doubts about interfaces in relation to the way they are used. I thought the interface was not used as a variable that represents and stores some kind of data, see MinhaInterface mInterface; instead of having the sole purpos...
asked by 01.07.2016 / 20:35
4
answers

Why different objects of the same class can access private fields from one another?

Today while I was doing a course in Udacity (Intro to Java Programming) I thought about this in the Update the class Person exercise (lesson 3 29/45). In object-oriented modeling we have the concept of encapsulation (hide implementation...
asked by 26.08.2016 / 14:09
3
answers

Builder builder?

I would like to understand why this class has two constructors and why one of them has everything inside this and not separate as in the other. Does that change anything? Normal constructor: public Conta(Correntista correntista, String...
asked by 24.06.2017 / 17:36
3
answers

How to know how many objects were instantiated?

In a Java application, how do I know how many objects in a class were instantiated? This doubt came to me by reading the article mentioned in the link below. Here is the excerpt that gave me the doubt:    2.4 - Connection Factory       At...
asked by 05.11.2015 / 13:49
2
answers

How to use arrays in Java?

It's a very early question (I'm new to Java, I came from C ++). I have to make a program that takes 4 notes of 10 students, but when I play with the "pointers" (arrays), my program returns an exception: import java.util.Scanner; class Aluno {...
asked by 08.02.2014 / 15:03
1
answer

What is the best way to create accessible methods for any activity?

Hello. When I need to create a method for an Activity I simply write it in my Activity code. For example: package com.pcriot.maxsoft.testapplication; import android.os.Bundle; import android.app.Activity; public class MainActivity extends Ac...
asked by 22.04.2014 / 07:01
1
answer

How to make an interface in C ++?

Java, C #, and other languages have the interface concept, which is very useful in some circumstances. How to make an interface or the closest to it in C ++?     
asked by 07.05.2016 / 01:15
1
answer

How to have multiple addresses in a person class?

If a person has more than one address. Is the code below correct? public class Pessoa implements Serializable { private static final long serialVersionUID = 1L; private int codigo; private String descricao; private String data...
asked by 06.08.2015 / 04:46
2
answers

What is a domain class?

What is a domain class? Why "domain"? Are there methods that it should not have (which is not of its function to have certain type of method)? Does it support what types of methods?     
asked by 14.05.2018 / 17:04