Questions tagged as 'herencia'

1
answer

Is it possible to invoke a super class method from the onClick eventon?

It turns out that I have a button that performs an action with an if but it turns out that if it does not enter that if I need to run a method of an android class that are the ones that put the menu in the action bar: btnBuscar.setOnClickListe...
asked by 14.10.2018 / 00:53
0
answers

Merge parent-child tables in postgresql

I hope you can help me with this. I have 3 tables: vehicle (father), car (son), motorcycle (son) with the following fields. Vehículo(id,marca,anio,precio) Carro(nro_puertas integer) (Heredada de vehículo) Moto(incluye_access boolean) (Heredada...
asked by 16.03.2018 / 07:08
0
answers

expected type-specifier before error c ++

I get an error compiling that I do not understand, I'm implementing the Langton ant using inheritance and polymorphism, by creating a pointer to a class that defines a type of ant with special characteristics. Estos son los errores que me sale...
asked by 11.03.2018 / 21:33
1
answer

Inheritance in controller.php Laravel 5.5

Is it possible to create a function in the Controller.php file and then use it in the controllers? I try to do it and I get the error: Method [findArticleById] does not exist on [App\Http\Controllers\ArticlesController]. The function in Con...
asked by 19.12.2017 / 00:26
0
answers

Inheritance in Python

I am learning python and I am practicing the inheritance in the classes I can not manage to make the code when the motoElecrica class uses the method doingWilly without having used the "start" method to show me a message that first I must start...
asked by 16.12.2017 / 04:19
0
answers

handle inheritance in java?

I have a small obstacle, I have a table that inherits others. The main table is Persona and my Entities: @Entity @Inheritance(strategy = InheritanceType.JOINED) @NamedQueries( { @NamedQuery(name = "Persona.all", query...
asked by 21.08.2017 / 21:06
0
answers

How is Java inheritance used? in the extends option I have an error to inherit another object

class CarroToyota extends carroBMW { public CarroToyota () { modelo= "Toyota"; } } The upper part says that it is correct but at the moment of importing another class it says that I have an error in ca.modelo: import pa...
asked by 07.08.2017 / 00:36
2
answers

Inheritance in entity framework by hierarchy

I have a problem that I can not solve days ago, I am working with enttity framework codefirst in vs2015 with c #, I have a hierarchy, summarizing: Person -IDPersona -first name -last name User -IDPersona -user -password Operator -IDPers...
asked by 02.02.2017 / 13:52
2
answers

Why do not you let me do a casting?

How about, I'm trying to represent a function in java and create a class to represent sine, cos etc ... that is a child of the class Term, then I store each term in an ArrayList. The problem is that when executing send me this exception Ex...
asked by 17.01.2018 / 23:12
2
answers

Attribute inheritance

How would it be possible to access the $ foo attribute in the following inheritance example? I thought that by inheritance you could access properties and methods of the parent class but in this example I get an error. <?php class Clase...
asked by 12.05.2017 / 14:40