I have search the ways that how can I define some thing like this in python OOP ways:
java:
package project.work;
public interface IWork
{
public void input();
public void display();
}
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.
Python doesn’t really have interfaces as separate from classes. You can use the
abcmodule to get a similar effect. Discussion on that method and on some others is here.