I am fairly new to java and in my code I need a child class to be able to make a an object of its parent class I am pretty sure there is a java keyword that does this but when I searched Google for it nothing came up.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A nice feature about polymorphism is that every instance of the child type is also an instance of the parent type. All of these “return an object of the parent type”;