1 / 6

TIPOS DE LISTAS ENLAZADAS

TIPOS DE LISTAS ENLAZADAS. TIPOS DE LISTAS ENLAZADAS. PUBLIC CLASS NODOMULTIPLE PRIVATE IN DATO; PRIVATE NODOMULTIPLE SUP;. TIPOS DE LISTAS ENLAZADAS.

Download Presentation

TIPOS DE LISTAS ENLAZADAS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TIPOS DE LISTAS ENLAZADAS

  2. TIPOS DE LISTAS ENLAZADAS PUBLIC CLASS NODOMULTIPLE PRIVATE IN DATO; PRIVATE NODOMULTIPLE SUP;

  3. TIPOS DE LISTAS ENLAZADAS Se crea la clase con sus atributos, constructores y métodos pero hay un objeto con fraccionarios el problema es que hay un int creado entonces tengo que cambiar el int por object para poder trabajar con las dos variables int y fraccionario private object dato; Privatenodomultiple;

  4. TIPOS DE LISTAS ENLAZADAS EJERCICIO Crear codigo java

  5. TIPOS DE LISTAS ENLAZADAS NODOMULTIPLE X; X=NEW NODOMULTIPLE(); X.SETDATO(NEW FRACCCIONARIO()); X.GETDATO().SET NUM(1); ERROR SE APLICA UN CASTING F=(FRACCIONARIO) X.GETDATO(); F.SETNUM(I); FORMA CORRECTA

  6. TIPOS DE LISTAS ENLAZADAS SI NO QUIERO HACER UN CASTING APLICO LO SIGUIENTE PUBLIC CLASS NODOMULTIPLE <t>{ Private t dato; Privatenodomultiplesup;

More Related