Here we were required to design a polymorphic container (say, a stack) using the features provided by a procedural/modular programming language supporting ADT implementation. (Do not use polymorphic features of the language, and do not use a kind of tag i.e. any sort of type field).
Design document and Implementation provided in subsequent posts.
xoxo
aL
Showing posts with label java. Show all posts
Showing posts with label java. Show all posts
Friday, January 11, 2008
Monday, September 3, 2007
.getClass() vs instanceof
class Parent {}
class Child extends Parent {}
Child c = new Child();
c instanceof Parent is true
c.getClass().equals(Parent.class) is false
bye
Al (alokadvin)
Subscribe to:
Posts (Atom)
