Hey all! I'm new here, but hope to stay a while.
So I have a project I'm working on that requires two different linklists - each with a different list of objects.
My linklist is composed of nodes that contains the member variables 'Object data' and 'Node link'
How do I call a getter method on 'data' when it gives me the error "getName() is not defined for the type Object"? It's defined for a different class which the Object holds.
head = new Node(new Rentable(),null); head.data.getName(); GIVES ME "Method getName() is not defined for type Object"