Question: Whether private,protected method can be overloaded,overrided or not?Tell me reason?
Answer: We can use access specifier's and we can overload the methods also. but we can't override methods( by changing only access specifier is just like a override.)
Question:
Whether private,protected method can be overloaded,overrided or not?Tell me reason?
Answer:
We can use access specifier's and we can overload the methods also. but we can't override methods( by changing only access specifier is just like a override.) Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.
I want to create two instances of a class ,But when trying for creating third instance it should not allow me to create . what i have to do for making this?