![]() You could pass a Dog, Duck, or Cat object to a method as an argument for a parameter of type Animal. By specifying a parameter as a base class type, you have the flexibility to pass an object of any derived class to it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |