Вы находитесь на странице: 1из 3

LOVELY PROFESSIONAL UNIVERSITY

MODEL HOME WORK: #2

CourseCode: CSE202 Course Title: Object


Oriented Programming

School:
Department:

Name of the faculty member:

Class: Term: Section:


Batch:

Max. Marks: Date of Allotment: Date


of Submission:

Part-A
Q. 1 Discuss and compare the structures and union in C with
classes in C++.
Q. 2 Discuss the applicability of the member functions and non-
member functions.
Q. 3 WAP compare the implementation of static members and static
objects.

Part-B

Q. 4 Is the memory differently allocated to the class and objects,


Illustrate with the help of an example.
Q. 5 Discuss the various circumstances where it becomes necessary
to implement Friend Function, Also give a practical
Example.
Q. 6 Design a class with two data members (string name and integer
length) , read the string using dynamic constructor, and a member
function palindrome. WAP to check whether a string is Palindrome or
not.

Date: Sig. of Faculty


member
Remarks by HOD (Mandatory)

Sig. of HOD with date


Remarks by HOS (Mandatory)

Sig. of HOS with date


http://www.nicollet.net/2008/12/cpp-functions/

http://www.exforsys.com/tutorials/c-plus-plus/c-plus-plus-friend-
functions.html

Вам также может понравиться