Greeting !! i wnt to know more about abstact class and Interface . and terminology to inhereted like abstract class extends and interface implements.need a help .please solve my problem.provide some example with matter .
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.
An abstract class is a class which is NOT instantiated, so there is no such thing like this:
The abstract class can only be inherited and not used directly. You use it as a base class where you put all the code that other classes can share.
An interface is like an agreement which methodes a class must implement: