Tuesday, 17 July 2012

VU CS304- Object Oriented Programming LATEST SOLVED SUBJECTIVES FROM MIDTERM PAPERS 2011 Part3


VU CS304- Object Oriented Programming LATEST SOLVED SUBJECTIVES FROM MIDTERM PAPERS 2011 Part3


MIDTERM EXAMINATION 2011
What is interface give two real life examples?
Answer:- (Page 18)
Interface is a set of functions of an object that he wants to expose to other objects.
Interface of a Car is set of these functions
• Accelerate • Change Gear • Apply Brakes• Turn Lights On/Off
Interface of a Phone is set of these functions
• Input Number• Place Call • Disconnect Call • Add number to address book • Remove number • Update
number
What is aggregation give example?
Answer:- (Page 53)
An object may contain a collection (aggregate) of other objects, the relationship between the container and the
contained object is called aggregation, For Example: A room and its components like table, chair and bed etc
are example of aggregation.
What is an abstract class?
Answer:- (Page 21)
Taking part of the objects and their functions that is related to the problem and ignore all other irrelative
characteristic called abstraction

No comments:

Post a Comment