Consider the following C++ class code. [20]
class MyClass {
public:
MyClass(char*, int, int);
char* Name(void);
int First(void);
int Second(void);
protected:
char* name;
int first;
int second;
};
The above code also introduces a constructor, a function with the same name as the class name, which is called whenever the class object is created and the above C++ class has the following object declaration.
MyCLass obj("str", 10, 2);
MyClass * ptr;
ptr = new MyClass("str", 10, 2);
For the above given code in C++, you are required to write the equivalent code and the same object declaration in Ada programming language.