Home /University Of Sargodha (UOS) /Object Oriented Programming

University of Sargodha Class: BSCS 2nd Semester Subject: object oriented Programming Exam: Practical exam 2015 Time Allowed: 2:00 Hours Marks: 20

University of Sargodha Class: BSCS 2nd Semester Subject: object oriented Programming Exam: Practical exam 2015 Time Allowed: 2:00 Hours Marks: 20 — page 1

Discussion

Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.

Your email is only used to send you replies and occasional Ustadni updates. It is never shown publicly.

Log in to post under your name

No questions yet — be the first to ask.

More Object Oriented Programming papers

See all

Paper text

University of Sargodha

Class: BSCS 2nd Semester

Subject: object oriented Programming

Exam: Practical exam 2015

Time Allowed: 2:00 Hours

Marks: 20

ustadni.com

92: Create a class student which shows the degree (declared as string), of the student and person class which

has the data member name (declared as string) and id (integer). By using multiple inheritances derive another

class instructor which has its own data member salary (as double). Write the appropriate constructor, member

functions to input data by using keyboard and display data for the instructor.

[07 Marks]

0 2: A class with the name STRING defines a string as data member (a string is defined as an array of type

char). Write a program to validate the following expression in the main 0 function.

ob3= obi + ob2;

Where obl, ob2 and ob3 are the instances of the STRING class.

[07 Marks]

[06 Marks]

O 3: Viva + Demonstration

visit website: ustadni.com