Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Other threads similar to
casting a subclass as a superclass
Programmer Certification (OCPJP)
Typesafe Downcasts
20 replies
Programmer Certification (OCPJP)
question from Dan's exam - ClassCastException
46 replies
[
1
,
2
]
Java in General
Superclass has subclass reference
7 replies
OO, Patterns, UML and Refactoring
Martin's [i]Agile Software Developement[/i]
4 replies
Programmer Certification (OCPJP)
generic method
4 replies
Programmer Certification (OCPJP)
Reference variable casting mechanism
3 replies
Beginning Java
Polymorphism with the same method
Staff volunteer someone thinks this thread is probably resolved
10 replies
Beginning Java
Casting reference types.
1 reply
Beginning Java
Understanding interfaces and abstract classes example
5 replies
Programmer Certification (OCPJP)
Reason for java.lang.ClasscastException
1 reply
Programmer Certification (OCPJP)
static method overriding
2 replies
Beginning Java
Runtime Polymorphism
3 replies
Beginning Java
Write the code of program Room?
139 replies
[
1
,
2
,
3
,
4
]
4
Beginning Java
Correct me if I'm wrong but can't you call a child method from main
5 replies
Swing / AWT / SWT
Graphics2D g2 = (Graphics2D)g;
13 replies
Threads and Synchronization
Call to subclass method fails intermittently from thread
4 replies
Programmer Certification (OCPJP)
abstract class and interfaces in java
Staff volunteer someone thinks this thread is probably resolved
9 replies
Java in General
casting superclass into subclass with struts
1 reply
Beginning Java
Implementing Methods
11 replies
OO, Patterns, UML and Refactoring
Clarifiction on Adapter Pattern!
7 replies
Programmer Certification (OCPJP)
downcasting doubt
6 replies
Java in General
access specifier for an overriding method can allow more, but not less, access than the overridden
3 replies
Beginning Java
Question regarding Cloneable interface and Subclasses
8 replies
Beginning Java
Confusion in overriding
1 reply
Beginning Java
Polymorphism at runtime
7 replies
Programmer Certification (OCPJP)
static methods can�t be overridden
5 replies
Java in General
Can we extends a class having private constructor?
12 replies
Programmer Certification (OCPJP)
JQ+ question
24 replies
Programmer Certification (OCPJP)
Superclass that requires any of its subclasses to create a no-arg constructor?
Staff volunteer someone thinks this thread is probably resolved
11 replies
Programmer Certification (OCPJP)
Casting subclass to superclass type
3 replies
Programmer Certification (OCPJP)
How to user polymophism??
2 replies
Beginning Java
Overloading with primitive types
Staff volunteer someone thinks this thread is probably resolved
7 replies
Programmer Certification (OCPJP)
Generics and return-type substitutability
19 replies
OO, Patterns, UML and Refactoring
'hiding' Parent class's methods
13 replies
Beginning Java
Inheritance.
3 replies
Programmer Certification (OCPJP)
ArrayStoreException
9 replies
Beginning Java
Superclasses
11 replies
Programmer Certification (OCPJP)
this and super
5 replies
Programmer Certification (OCPJP)
Overriding
Staff volunteer someone thinks this thread is probably resolved
3 replies
Beginning Java
Inheritance concepts
13 replies
Programmer Certification (OCPJP)
is this.setSuspension(suspensionType); same as suspension = suspensionType; ???
8 replies
Programmer Certification (OCPJP)
method overloading issues
5 replies
Beginning Java
Java Generics
22 replies
Programmer Certification (OCPJP)
why does this not compile?
12 replies
Programmer Certification (OCPJP)
Q. about constructors (and inheritage)
4 replies
Programmer Certification (OCPJP)
constructor question
4 replies
Swing / AWT / SWT
Beginner with GUIs
1 reply
Java in General
Java w/OOP principles.. (theory?)
5 replies
Programmer Certification (OCPJP)
Help me
1 reply
Beginning Java
Why declare an object and instantiate it as instance of inherited type?
13 replies