If I declare class as abstract with no abstract methods declared in it, will it give a compilation error ?
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.
Not at all. An abstract class with no abstract methods can be used to signify a base class that is intended to be extended, but for which a concrete instance does not make sense.