If a question asks new parkRanger().notenewoffspring(_______) 
What type of answers will match the blank in above......is it subclass or superclass or how to judge a question like this..
			
			
									
									
						question on objects
Moderator: admin
- 
				sulakshana
 - Posts: 14
 - Joined: Thu Dec 22, 2016 8:55 pm
 - Contact:
 
- 
				admin
 - Site Admin
 - Posts: 10443
 - Joined: Fri Sep 10, 2010 9:26 pm
 - Contact:
 
Re: question on objects
You can always pass a subclass object where the parameter type is a super type. You will need to go through a good book to understand the topic of polymorphism to answer such questions.
			
			
									
									
						Who is online
Users browsing this forum: No registered users and 26 guests