Professional Documents
Culture Documents
Comp SC
Comp SC
13. When object is used as function argument , than how call by value is differ from call by reference
14. What do you mean by a ray of objects
15. Differentiate between public and private visibility mode.
B. Answer any two questions
16. What do you mean by polymorphism ?
17. What is the relationship between class & object ?
18. Define a class book with following description.
Private member
-Book no integer type
-book title 20 character
-price float
-total cost ( ) - to calculate total cost for N number of copies
Public member
-input ()- function to read book no , book title, price
-purchase () –function to ask the user to input number of copies to be purchased, it invoke total cost () and
print total cost.