Inheritance is the property of oops in which we can access and extend all the public and private member of class using other class without writing the whole code. The class which is inherited is known as parent or base class. Class which does the inheritance is known as child or derived class. We can achieve the inheritance using colon (:) in c#. in c sharp we can inherit only one class into another class.
For Detail Click HereNo. if you want to override a method into derived class then that method must be declared as either virtual or abstract.
For Detail Click HereNo. it is not necessary for me to override a virtual method.
In overriding we are simply extending the base class method which is declared as virtual. But in hiding we are simply suppressing or hiding the calling of base class method in derived class.
For Detail Click HereTo know the answer of this question in Detail Click Here
Internal is basically an access modifier which is only accessed in same assembly.
For Detail Click HereAbstract class is an incomplete class in which we can add both abstract and non-abstract method. Abstract method is the method which is only declared not defined. We can create the object of abstract class. To access the abstract first we have inherit that class and then we have to override all abstract method to define them. Then we have to create the object of derived class.
No. it is not necessary for an abstract class to have abstract method but if you have declared abstract method in class then that class must be abstract.
Yes. It is must for me to define all method which is abstract in abstract class. if you are not able to define all method then you can again declare derived class as an abstract class.
Yes we can.