Is creating an Object using new() operator is polymorphism?
Recently I attended an interview and a question was asked to me
Is creating an Object using new() operator is polymorphism?
For ex:
Employee e = new Employee();
Is this polymorphism? (Reply with yes and no and explain.)
I was unable to think of the answer.
As what i have read about polymorphism is compile type and runtime.
Can anybody explain? Thanks.
No comments:
Post a Comment