C# Exclusive Interview Questions and Answers (453) - Page 15

  • A joint initiative from DotNetFunda.Com and Questpond.
  • A one stop place on the internet to get trusted and proven Interview Questions (based on more than a decade of experience in this field) to ensure the success of the candidates.
  • You will find almost all Interview questions from Questpond here and this list is growing day by day with all latest and updated interview questions.

453 records found.

Get 650+ Questpond's Interview videos on discount

When a non virtual method of Parent class if written in child class then it is said to be _________ the parent class method

NOTE: This is objective type question, Please click question title for correct answer.
When a non virtual method of Parent class if written in child class then it is said to be _________ the parent class method

NOTE: This is objective type question, Please click question title for correct answer.
class CA { private void Foo() { } } class CB : CA { public ________ void Foo() { } } Which of the following are valid

NOTE: This is objective type question, Please click question title for correct answer.
Every method of child class which is declared as "new" can also be declared as

NOTE: This is objective type question, Please click question title for correct answer.
Can we redeclare a instance variable in child class if with same name it is already declared in parent class.

yes it must be declared as new (showing the parent class instance variable)
Does .net support Multiple Inheritance

Yes. It supports through Interface.
What all access specifiers are allowed when we are explicitly implementing interfaces

Explicitly implemented method should not have any access specifier because they anyhow cannot never be invoked explicitly using a variable of a class in
which they are implemented.They can be invoked only using reference variable of type interface.
Why an instance can't be created for an abstract class

An
Instance of Abstract class cannot be created because an abstract class
may (not compulsory) have some abstract members i.e. members whose
declaration is provided and implementation is not and if the instance of
this class is created, that abstract method would be invoked and it
doesnt have implementation and this would create a problem.

To avoid this kind of problem the compiler gives error if we try to
create the instance of abstract class (which can also be said as
incomplete class)

The protected member of parent class ___________ be accessed in a child class method using reference variable of type parent

NOTE: This is objective type question, Please click question title for correct answer.
Can a reference variable of type parent, refer to an object of child class

NOTE: This is objective type question, Please click question title for correct answer.
Structures are __________ type and classes are ___________ type

NOTE: This is objective type question, Please click question title for correct answer.
Every member of an interface is by default ____________ and _____________

NOTE: This is objective type question, Please click question title for correct answer.
can we instantiate an interface

We can't instantiate an interface but we can get a reference to an interface
Why do we use interfaces when we can do the same with classes

Class can implement multiple interfaces but cannot inherit from multiple classes.Thats the benefit of interface over a class.
Can polymorphism be implemented without interfaces

yes,it can be.But the better way to implement polymorphism is using interfaces.
A class declared as __________________ cannot be inherited.

NOTE: This is objective type question, Please click question title for correct answer.
Can a sealed class have abstract methods

NOTE: This is objective type question, Please click question title for correct answer.
Virtual methods are __________ binded

NOTE: This is objective type question, Please click question title for correct answer.

More C# Interview Questions & Answers here

Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Exclusive Interview Questions and Answers Categories