Questions tagged as 'classes'

1
answer

Libraries, interface, classes and methods

What's the difference between libraries and interfaces? For example, in the line: import java.util.Scanner; Would util be the interface and Scanner of the class? Or would util be the library and Scanner would...
asked by 08.09.2015 / 14:43
1
answer

What is the purpose of "&" in the generic type declaration?

In this code , the author creates a class as follows: public abstract class GlyphIcon<T extends Enum<T> & GlyphIcons> extends Text { /* ... */ } My question is to understand the meaning of this & in the followi...
asked by 20.02.2016 / 09:56
2
answers

functions and methods in PHP are case-insensitive?

Some time ago, due to an accident at the time of a debug I realized that PHP is not case sensitive at the time of a function call. Example: print_r($teste); print_R($teste); Print_R($teste); The same thing happens for the methods of...
asked by 11.02.2015 / 15:24
1
answer

How to reverse engineer an android application?

As an android application in the .apk extension, get the classes, layouts, libraries, etc., ie reverse engineering? Note: I used 7-zip as Bacco advised and resulted in the following files folder: The classes appear in this extension ....
asked by 04.10.2014 / 20:47
1
answer

What does "::" mean in C ++?

I have doubts about using the colon :: , used to do class implementation, [tipo] [classe]::[método] . It is also used, for example, in std::cout . What exactly would these two double points be and what do they serve for?     
asked by 18.09.2015 / 04:19
1
answer

What is a wrapper class?

What is a wrapper class? How can they be useful? Cite examples of usage at php or
asked by 03.02.2014 / 16:58
1
answer

Why use VAR in PHP?

Why use VAR in php if we can declare variables without VAR? We can do this: $teste so why do that? var $teste For example, is it the same thing I do this? class Caneta { var $modelo; var $cor; } And this: clas...
asked by 09.06.2017 / 15:42
2
answers

How do I know if a class implements an interface?

In PHP, we can implement one (or more) interface in a class. So: interface Authenticable { // métodos } interface Model { // métodos } class Person implements Authenticable, Model { // métodos } In...
asked by 21.10.2016 / 12:39
1
answer

sealed class, with private constructor, versus static class

By "studying" this class , I checked that it is sealed and has the private constructor: public sealed class Interaction { /// <remarks> /// CA1053: Static holder types should not have public constructors /// </rema...
asked by 11.01.2017 / 16:25
2
answers

Can I use class and struct at the same time?

I have a "Address" variable, however, it is made up of "Street", "Number" and so on. The way I did below is the best one to do? With class and struct at the same time? Or is there something better and simpler to do? public struct...
asked by 28.09.2016 / 15:49