Create a class Clock having private data members hour and minute in integer.

a) Create a class Clock having private data members hour and minute in integer. A default
constructor should initialize the data to 0. Overload it with parameterized constructor. A
member function should enter the data and another should display time in 10:37 format. A
final member function should receive two objects, add them and store the result to the
invoking object. Write an appropriate main ( ) function.

What is a pointer?

c) What is a pointer? How it can be used with objects of a class? Explain this pointer.

What is an exception?

c) What is an exception? What are the types of exception? Explain the exception handling
mechanism.

Create a class measure having data members: feet and inch.

c) Create a class measure having data members: feet and inch. Another class distance having
data members Meter. Define a function such that it adds two different objects of both the
classes and display equivalent distance in Centimeter. Define main ( ) to test the class.