Guest User

test_person2.adb

a guest
May 12th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.35 KB | None | 0 0
  1. with Person2; use Person2;
  2. with Ada.Text_IO; use Ada.Text_IO;
  3. with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
  4.  
  5. procedure Test_Person2 is
  6.    I_Am_Hugo : Person;
  7. begin
  8.    Set_Name (I_Am_Hugo, To_Unbounded_String ("Hugo"));
  9.    Set_Age  (I_Am_Hugo, 19);
  10.    if Is_Adult (I_Am_Hugo) then
  11.       Put_Line ("He's adult");
  12.    end if;
  13. end Test_Person2;
Advertisement
Add Comment
Please, Sign In to add comment