C# OOPS INTERVIEW QUESTIONS-ANSWERS WITH EXAMPLES
Hi friends here are some very important OOPS interview questions answers with user friendly format. And the best thing is that all examples represented with screen shots. This will help you to understand oops concept.
We have written this career set after the success of our Asp.net Interview Questions(more then 100 Q-A), So if you are prepare for .net developer interview then don't miss to read our complete set.
If you read it then you will cover 80% interview question so click here for read complete set.
Apart from that we have more then 100 SQL Interview Queries, You can read both above set after read this post. Happy learning
Thanks for visit..
OOPS QUESTIONS ANSWERS:-
Q-1). We have two classes BaseClass and ChildClass, ChildClass inherit base class. If we make the object of child class then which class's constructor called first?
Ans: Base class constructor will be call first.
Q-7) : See the image and understand it.
We have written this career set after the success of our Asp.net Interview Questions(more then 100 Q-A), So if you are prepare for .net developer interview then don't miss to read our complete set.
If you read it then you will cover 80% interview question so click here for read complete set.
Apart from that we have more then 100 SQL Interview Queries, You can read both above set after read this post. Happy learning
Thanks for visit..
OOPS QUESTIONS ANSWERS:-
Q-1). We have two classes BaseClass and ChildClass, ChildClass inherit base class. If we make the object of child class then which class's constructor called first?
Ans: Base class constructor will be call first.
Q-2). Can we declare an Abstract method in non-abstract class?
Ans: No
Q-3). Can we give the return type of constructor?
Ans: No
Q-4). We
know that Base class constructor called first. But if we creating object
with parameters, and base class have both constructor default and
parameterized, then which constructor of baseclass called first.
Ans: Base class default constructor called first.
Q-5). If we have an abstract method in base class, then we must need to override(or use new keyword) it or not?
Ans: Yes, if we not override it then it give error.
Q-6). Then what you can do that base class parameterized constructor call first.
Ans: We can use "Base" Keyword.
Q-7) : See the image and understand it.
Q-8) : See the image and understand it.
As we stated above that we have written this career set after the success of our Asp.net Interview Questions(more then 100 Q-A), So if you are prepare for .net developer interview then don't miss to read our complete set.
If you read it then you will cover 80% interview question so click here for read complete set.
Apart from that we have more then 100 SQL Interview Queries, You can read both above set after read this post. Happy learning
So don't forgot to read our very popular set
Asp.net Interview Questions(more then 100 Q-A)
100 SQL Interview Queries
If you read it then you will cover 80% interview question so click here for read complete set.
Apart from that we have more then 100 SQL Interview Queries, You can read both above set after read this post. Happy learning
So don't forgot to read our very popular set
Asp.net Interview Questions(more then 100 Q-A)
100 SQL Interview Queries
Please check for Q4 and Q5, I guess images are swaped
ReplyDeleteYou are wrong Mr.Sandesh IMG are not swapped
Deletegood Explaination
DeleteGood Questions...
ReplyDeleteGud Example
DeleteQuestion Number 7 is Awesome !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
ReplyDeleteOverall very good Explanation
ReplyDeletegood examples
ReplyDeleteNice Collection and efforts made by blogger...
ReplyDeleteThanks a lot..
Nice Collection and efforts made
ReplyDeleteGood Questions
ReplyDeleteNice questions. Add more like this. Keep the good work up. Thanks. GBU.
ReplyDeletevery helpful.Please post more examples
ReplyDeleteAwesome collection, very helpful...
ReplyDeletePlease add more information about oops concept over all..
ReplyDeleteonly 8 questions for oops or there are more which have not been covered here so far?
ReplyDeleteAwesome
ReplyDeleteKeep up the good work .
ReplyDeletePlease add some more question
ReplyDelete