Identify Subclasses

No view

- You use the Cl forName method to get a Clobject for the clgiven in a parameter. Since the clis expected to implement the Command interface, you cast the object into Command, and then the process method that will perform the task. a Reflection provides a . - In some situations it may be necessary to identify all of the subtypes of a given clthat exist within anembly. cannot be read . - You should use polymorphism to try to avoid the need to check for the concrete subcl., but I can 't tell you more with the information given..Nevertheless, we note that most existing object-oriented programming languages do identify type and clas well as subtype and subcl That is, a clis .

No related post!