When do you absolutely have to declare a class as abstract
(as opposed to free-willed educated choice or decision based
on UML diagram)?



When do you absolutely have to declare a class as abstract (as opposed to free-willed educated choi..

Answer / guest

When at least one of the methods in the class is abstract.
When the class itself is inherited from an abstract class,
but not all base abstract methods have been over-ridden

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Sharp Interview Questions

hi, I am a begineer to c sharp. I have written a code for finding out prime numbers. Can anyone identify what are the flaws in my code. Kindly donot complex the code or present logic because i am new to c sharp and just started learning programming language.Thanks in advance. class Program { static void Main(string[] args) { int a,b=1; a = int.Parse(Console.ReadLine()); c= int.Parse(Console.ReadLine()); if (a % b == 0 && a % 2 != 0 && a % a == 0) Console.WriteLine(a); else if (a % b == 0 && a % 2 == 0) Console.WriteLine(a%2); Console.WriteLine("Number is not PRIME"); Console.ReadLine(); } } }

2 Answers  


What is the difference between c and c sharp?

0 Answers  


Ho we can see assembly information?

0 Answers  


Differentiate between dataset and datareader?

0 Answers  


What is the use of GC.KeepAlive Method?

0 Answers   HCL,






What are the features of c#?

0 Answers  


What is null in database?

0 Answers  


what is difference between destruct or and garbage collection ?

0 Answers   Wipro,


What is written in c#?

0 Answers  


Is struct object oriented?

0 Answers  


What is regex c#?

0 Answers  


Can a sealed class be used as a base class?

0 Answers  


Categories