With refrence to C#, it is possible to define abstract class containing no abstract methods, then whats the use of defining class as ABSTRACT?
With refrence to C#, it is possible to define abstract class containing no abstract
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basically, I use as a rule of thumb that you should always define classes abstract when they MUST be inherited to be instantiated. Because abstract classes themselves cannot.
For example. Say you have a Building class, which is abstract. It must then be instantiated through a derived class, for example, a Bank or House. The fact that there are no abstract methods in the Building class has nothing to do with it being abstract or not.