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-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

Comments

  1. Please check for Q4 and Q5, I guess images are swaped

    ReplyDelete
    Replies
    1. You are wrong Mr.Sandesh IMG are not swapped

      Delete
  2. Question Number 7 is Awesome !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11

    ReplyDelete
  3. Overall very good Explanation

    ReplyDelete
  4. Nice Collection and efforts made by blogger...
    Thanks a lot..

    ReplyDelete
  5. Nice Collection and efforts made

    ReplyDelete
  6. Nice questions. Add more like this. Keep the good work up. Thanks. GBU.

    ReplyDelete
  7. very helpful.Please post more examples

    ReplyDelete
  8. Awesome collection, very helpful...

    ReplyDelete
  9. Please add more information about oops concept over all..

    ReplyDelete
  10. only 8 questions for oops or there are more which have not been covered here so far?

    ReplyDelete
  11. Please add some more question

    ReplyDelete

Archive

Contact Form

Send