Sponsored Links


Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: CS304 Object Oriented Programming assignment no 3 idea solution spring June 2011

  1. #1
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578

    18 CS304 Object Oriented Programming assignment no 3 idea solution spring June 2011

    Sponsored Links1


    Object Oriented Programming (CS304)
    Assignment No.03

    Total Marks 10

    Deadline

    Your assignment must be uploaded before or on 14th June, 2011.
    Rules for Making

    It should be clear that your assignment will not get any credit if:

    o The assignment is submitted after due date
    o The assignment is copied

    Objectives

    This assignment has been designed so that you would be able to implement the concept of Inheritance in OOP. After the completion of this assignment you should have a good grasp on how to implement.

    o Inheritance
    o Public & private inheritance
    o Using basic constructs of OOP in a program

    In previous assignments we have understood all the basics of the Content Management System including the Object Model Diagram and highlighted the Abstraction of classes in terms of attributes and functions prototype. Now it is time to implement the full system in parts, so this assignment is first step towards it (there will be one more assignment also).



    Assignment:

    In this assignment you have to code/implement the below said classes in running form these classes are,

    • Topic
    • Sub Topic








    Meaning after completion of this assignment your c++ program will be able to

    1. Add/Edit/Remove Topics
    2. Search/ View Topic
    3. Print/Download Topic



    Now for implementing these two classes practically in c++ you have to define classes according to the requirements (solution of second assignment) given below, each class will have some attributes and functions that needs to be implemented in reality.

    Note: You may add some more attributes and functions in any of the class but already given attributes and functions will be at least in your solution file.


    class topic{ // topic class

    //topic class attributes
    // Access specifier is by default private
    int ID;
    char * title;

    public: // public access specifier

    Sponsored Links

    // topic class functions/ operations
    void add();
    void remove();
    bool select();
    void search();
    void View();
    void print();
    void download();
    };// end of topic class

    // ************************************************** ******************
    // ************************************************** ******************
    // ************************************************** ******************


    class SubTopic: public topic { // Inheritance relationship b/w topic and sub topic
    // Attributes of SubTopic class
    // Access specifier is by default private
    int SubID;

    };

    Furthermore, you are required to introduce the implementation of constructor, destructor and implementation of getter and setter functions in classes in such a way that,
    The ‘SubTopic’ class restrict the functionality of setTitle() function by override the setTitle() function of its base class‘Topic’ and check the condition:

    If the “title” has a paragraph text (length) then prints that “Eligible for being a Topic Title”.

    If object of “SubTopic class is initialized with no paragraph length, then it prints a message

    “Title just contain name and there is no description” and sets the value of title to default.

    Important Note:

    This is just starting code for demonstrating how Inheritance can be implemented you can add as much details as you like.

    Uploading Instructions:
    You have to upload your running zipped Dev c++ project.


  2. #2
    Junior Member
    Join Date
    Jan 2011
    Posts
    9
    plz upload the solution..................

  3. #3

  4. #4
    Junior Member
    Join Date
    Jan 2011
    Posts
    6
    please upload the solution i need it

  5. #5
    Junior Member
    Join Date
    Jan 2011
    Posts
    6
    a.a i need assignment 03 of cs 304 spring 2011 not fall 2011

  6. #6
    Administrator Xpert's Avatar
    Join Date
    May 2010
    Location
    Jhelum
    Posts
    6,239
    tu then you should post it in spring not in fall.

  7. #7
    jo start min hai assignment woh spring ha plz uploaded solution

  8. #8
    Junior Member
    Join Date
    Jan 2011
    Posts
    6
    please upload solution

  9. #9
    Junior Member
    Join Date
    Jan 2011
    Posts
    6
    kb ayayga solution?

  10. #10
    Administrator Xpert's Avatar
    Join Date
    May 2010
    Location
    Jhelum
    Posts
    6,239
    ah jay ga. janab thora sabar rakhen.

Page 1 of 4 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-21-2014, 02:21 PM
  2. Replies: 0
    Last Post: 06-18-2013, 09:44 PM
  3. Replies: 1
    Last Post: 04-27-2013, 04:15 PM
  4. Replies: 18
    Last Post: 11-01-2011, 12:10 AM
  5. Replies: 17
    Last Post: 07-01-2011, 03:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft