Object Oriented Programming - Old Questions
3. 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.
10 marks
|
Asked in 2067