Questions tagged as 'class'

1
answer

Pass parameter from an Activity to a Class

I have an ACTIVITY public class MainActivity extends AppCompatActivity implements SensorEventListener, View.OnClickListener { private SensorManager mSensorManager; private Sensor mAccelerometer; private Sensor mBrujula; pri...
asked by 26.02.2018 / 11:17
1
answer

Do not catch the ES6 Javascript effect

I have a problem. I do not apply the effect when I click, only when I add the variable enlance.addEventListener () in the console, calling the design class with the transition method but when I click nop, will someone know why? compile with node...
asked by 01.01.2019 / 23:44
1
answer

ClassCastException error on Android

When running the following line on android: recyclerView.getChildAdapterPosition(view); Skip the following Exception: java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.support.v7.widget.Rec...
asked by 24.11.2018 / 17:52
0
answers

I have not finished using the HelpScout WebHook

I am trying to integrate a HelpScout WebHook, having already applied the same API in a PrestaShop module that I am creating. The issue is that I ask the HelpScout technical service and they can not help me, they tell me to look at the guides the...
asked by 05.11.2018 / 07:43
0
answers

help, Create DAO with inherited classes

I am doing a project in which the class has the following structure package Model; public class ClProducto {     private int id;     private String name;     private String descriptionHTML;     private ClUnity Measured unit MeasuredId;     pr...
asked by 07.10.2018 / 05:56
1
answer

Assignment of ID and class in JS [closed]

I'm new to programming, I have a problem, and I have to create a menu from JS without touching the HTML, more or less I've finished it, but I need to add an ID and a class to each tag to be able to manipulate them later Can someone tell me a JS...
asked by 21.04.2018 / 21:18
1
answer

Search an object with a string or an int

I have a list with templates based on an array and what I try to do is to find the position of what I entered, either an integer or a string, but whenever I try, the program tells me that it can not convert an integer or a string to my object, o...
asked by 24.02.2018 / 07:36
2
answers

Operator overload + in C ++

I can not get the operator +, how can I overload the operator + to add the value of two dice and return an integer with the result? This is the class: class Dado{ private: int dado_; public: Dado(); Dado(int valor); inline int ge...
asked by 23.08.2018 / 23:17
1
answer

In Javascript. Where the default values are passed in a daughter class (extends). In "super" or in the "constructor"

Where the default values of the past arguments from the superclass (Vehicle) to the daughter class (bicycle) should be placed: class Bicicleta extends Vehiculo { constructor({numeroDeRuedas=2, tieneMotor=false}={}){ super(numeroDeRued...
asked by 30.11.2017 / 13:21
1
answer

Create Class for php chat

As the title says, I wanted to know how you can create a Class for a PHP chat that has the following structure. $mensaje->send $mensaje->delete But I do not know how, because you have to create the constructor of the class in the foll...
asked by 13.12.2018 / 17:54