Questions tagged as 'herencia'

2
answers

Initialize Array that is private property of one class in another!

I have a project for a structured exercise in three packages: Application (Main) package aplicacion; import mountainbike.MountainBike; public class ProbandoMountainBike { public static void main(String[] args) { MountainBike mb = new...
asked by 09.05.2017 / 17:46
2
answers

How to access the properties of a daughter class from the parent class instance

Assuming I have the following classes class Vehiculo { public string Nombre { get; set; } } class Auto : Vehiculo { public string CantidadRuedas { get; set; } } and what I want to do is the following Vehiculo vehiculo = new Auto...
asked by 04.12.2018 / 20:31
1
answer

Polymorphism and Inheritance in Java

They commissioned me a job in which I must use the polymorphism and inheritance of POO, the problem is that of 4 "values" that I want to show only shows me 2, I would like to know if someone could give me an alternative for this, not It is somet...
asked by 14.02.2018 / 21:56
2
answers

Inheritance of a web services instance C #

Good morning, I know that the title is a bit confusing but I will try to explain my problem. I am working on a software that consumes several web services, to do a series of CRUD operations, what I am trying to do is to optimize the program a...
asked by 07.11.2017 / 18:41
1
answer

daughter class method visible from the superclass

I have a superclass (Footwear) and daughter classes (Shoe-Shoe). I have a getIva () method in the Slipper class and I need to recover this Iva value from the superclass. The handling with the super is resolved, and I do not identify how to re...
asked by 02.07.2018 / 05:24
1
answer

Castings on derived class objects

I have a question about the solution to the following exercise; In the main class, when I call the force () or telekinesis () methods (which are in the derived classes), I have to do several castings on a vector that declares the type of the par...
asked by 23.08.2017 / 03:18
2
answers

Problem with inheritance in c #

I have the following slogan: Make a programmer view (name, surname, hours worked, button calculate ()) The method calculate returns the result in a programmer view 2 (name, surname - read only). (Time value and incentive in the class as private...
asked by 30.04.2017 / 03:43
1
answer

How to inherit the multiple inheritance constructor from a secondary super-class in python3?

How to inherit the multiple inheritance constructor from a secondary super-class in python3? Greetings I have a question, how can I make the sub-class: "MyClass" inherit the constructor of the super-class "MySuperClase2" in multiple inheritan...
asked by 03.01.2019 / 20:10
0
answers

Problem with inheriting a WindowsForms C # menustrip

I'm having a problem with the inheritance of a MenuStrip from a parent form to a daughter class since I can not access the edition of it. I have already tried from the parent class to put the modifiers in public and make their events virtual and...
asked by 19.11.2018 / 18:52
1
answer

Null Pointer Exception, because when sending values to the parent class Encryption, then the child classes do not receive them to perform the methods

class Encryption {     protected String wordM;     protected String phrase; public Encriptacion(){ } public Encriptacion(String palabraM, String frase){ this.palabraM=palabraM; this.frase=frase; } public boolean setPalabraM(String pa...
asked by 09.11.2018 / 21:33