Discuss the feature of the Object-Oriented Programming. Differentiate between Object Oriented Programming and Procedural Oriented Programming.
What is constructor? Explain their types? Discuss user defined parameterized constructor with suitable example.
Define a clock class (with necessary constructors and member functions) in Object Oriented Programming (abstract necessary attributes and their types). (Write a complete code in C++ programming language).
Derive a wall_clock class from clock class adding necessary attributes.
Create two objects of wall_clock class with all initial state to 0 or NULL.
Short Questions
Attempt any eight questions: (8 × 5=40)
How can you classify objects? Why dynamic objects are needed?
What is operator overloading? Explain their types with suitable examples.
Why type conversion is necessary in OOP? Explain with example, the type conversion routine.
What is Inheritance? Explain their types with their suitable examples.
What is friend function? Why it is used in OOP? Explain with an example.
What is container class? Differentiate container class from inheritance.
Explain the role of virtual function in Object Oriented Programming.
Explain about “this” pointer with suitable example.
Write a program to find the square of given integer using inline function.