Internal Paper
Internal Paper
____________________
ADIT/GCET/MBIT
(Constituent Colleges of CVM University)
202000212: Object Oriented Programming
Semester - 2 Internal Examination – May 2023
Q. 2 (A) 1. List the concepts (features) of Object Oriented Programming language. [04]
2. Explain inline function with suitable example.
(B) Create a class coordinate with private integer members, x and y. Overload ‘+’(binary [04]
plus) operator to add two objects of class coordinate using friend function. Define
necessary functions to set and display the data members. Demonstrate the class with a
main() function.
OR
(B) Create a class animal with private data members age and weight. Declare a constructor [04]
to initialize the members. Create a member function show() to display the members.
Create an array of 3 objects and display.