Maintain Project Information

Maintain Project Information

A Company need to maintain the details of their projects for easy access. Develop a program to store the information.

Create a base class named Project with instance member’s(project_id,project_name) and a constructor to initialize the data member’s
Create a dervied class Module with instance member(module_name) and a constructor to initialize the data member, which inherits the Project class, and holds all the properties of the Project class.
Create a dervied class Task with instance member(task_name) and a constructor to initialize the data member, which inherits the Module class, and holds all the properties of the both Project and Module class  and a method display to display all project details.
In the Main class get the input for project details, and call display method to display all the project details by creating object to Task class .

Strictly follow the naming conventions for variables and functions as specified in the problem description.
The Task class object should be task_obj
All the attribute values should be user inputs and store those values into the variables with the name: project_id for storing project id
project_name for storing project name
module_name for storing name of the module
task_name for storing task name

Sample Input 1:
Enter Project id:


Enter Project name:

Java content

Enter Module name:

CollectionEnter Task name:

Array list
Sample output 1:

Project Id:

Project Name:

Java content

Module Name:


Task name:

Array list

Code :-

class Project:
    def __init__(self,project_id,project_name):
    def get_project_id(self):
        return self.project_id
    def get_project_name(self):
        return self.project_name
    def display(self):
        print("Project Id:",self.get_project_id())
        print("Project Name:",self.get_project_name())
class Module(Project):
    def __init__(self,project_id,project_name,module_name):
    def get_module_name(self):
        return self.module_name
    def display(self):
        print("Module Name:",self.get_module_name())

class Task(Module):
    def __init__(self,project_id,project_name,module_name,task_name):
    def get_task_name(self):
        return self.task_name
    def display(self):
        print("Task name:",self.get_task_name())
project_id=input("Enter Project id:\n")
project_name=input("Enter Project name:\n")
module_name=input("Enter Module name:\n")
task_name=input("Enter Task name:\n")



2 thoughts on “Maintain Project Information”

  1. Can I just say what a comfort to uncover a person that actually knows what they’re talking about online.
    You certainly know how to bring an issue to light and make it important.

    More and more people need to look at this and understand this side of the story.
    It’s surprising you aren’t more popular given that you surely have the

  2. Hey there, I just found your site, quick question…

    My name’s Eric, I found after doing a quick search – you showed up near the top of the rankings, so whatever you’re doing for SEO, looks like it’s working well.

    So here’s my question – what happens AFTER someone lands on your site? Anything?

    Research tells us at least 70% of the people who find your site, after a quick once-over, they disappear… forever.

    That means that all the work and effort you put into getting them to show up, goes down the tubes.

    Why would you want all that good work – and the great site you’ve built – go to waste?

    Because the odds are they’ll just skip over calling or even grabbing their phone, leaving you high and dry.

    But here’s a thought… what if you could make it super-simple for someone to raise their hand, say, “okay, let’s talk” without requiring them to even pull their cell phone from their pocket?

    You can – thanks to revolutionary new software that can literally make that first call happen NOW.

    Talk With Web Visitor is a software widget that sits on your site, ready and waiting to capture any visitor’s Name, Email address and Phone Number. It lets you know IMMEDIATELY – so that you can talk to that lead while they’re still there at your site.

    You know, strike when the iron’s hot!

    CLICK HERE to try out a Live Demo with Talk With Web Visitor now to see exactly how it works.

    When targeting leads, you HAVE to act fast – the difference between contacting someone within 5 minutes versus 30 minutes later is huge – like 100 times better!

    That’s why you should check out our new SMS Text With Lead feature as well… once you’ve captured the phone number of the website visitor, you can automatically kick off a text message (SMS) conversation with them.

    Imagine how powerful this could be – even if they don’t take you up on your offer immediately, you can stay in touch with them using text messages to make new offers, provide links to great content, and build your credibility.

    Just this alone could be a game changer to make your website even more effective.

    Strike when the iron’s hot!

    CLICK HERE to learn more about everything Talk With Web Visitor can do for your business – you’ll be amazed.

    Thanks and keep up the great work!

    PS: Talk With Web Visitor offers a FREE 14 days trial – you could be converting up to 100x more leads immediately!
    It even includes International Long Distance Calling.
    Stop wasting money chasing eyeballs that don’t turn into paying customers.
    CLICK HERE to try Talk With Web Visitor now.

    If you’d like to unsubscribe click here

Leave a Comment

Your email address will not be published. Required fields are marked *