Variables declared in Interface are static and final by default. ...
Is it mandatory to implement all the methods which are there in abstract class if we inherit that abstract class..?
abstract class nnothing but a class which can declear a data but in abclass the data canot shown it internaly working. ...
Skill/Topic: InheritanceA) TrueB) FalseExplanation: An abstract class may not be declared as final.
flase ...
Can we create a object of Base class?..If we can not create a object of base class then why we need Abstract class?
We can create an instance of an abstract class.The below code is not working:sayHello is an abstract classObject o=System.Activator.CreateInstance(typeof(sayhello)); ...
To create objects we generally use new keyword mentioning indirectly the size to allocate the memory.We do not know the size occupied by abstact methods so we cannot create object for abstract methods. ...
Interface (behaviour) is same as class they have numerous of variable and methods.Â
All methods which have interface is abstract methods.
Abstract class is class this is partial implementation gap for sub class implementation.Â
Abstract class may ...
What is practical difference between abstract class and interface? What is practical implementation of polymorphism?
Abstract Class: There are two ways to create abstract class, one is by mentioning abstract key before the class declaration, and second one is by mentioning abstract key before the method declaration we can make that class as abstract class.eg:public ...
View page << Previous 1 2 [3] 4 5 6 7 8 9 10 Next >>

Go Top