CO 3) Demonstrate encapsulation by creating a declaration file from the following UML diagram: (Note) The…

CO 3) Demonstrate encapsulation by creating a declaration file
from the following UML diagram:
(Note) The declaration file is the header file (.h file)
and implementation file is the .cpp file.

Date 0 – num Date: static int – day: int – month: int – year int +Date0 +Date(int, int, int) +Date(Date &) +Date0 +get Day0: int +setDay (nt): void +getMonth int +setMonth (int): void +getYear int +setYear(int) void +dis play Date0: void