Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/VDM/VDMPP/CashDispenserPP/     Datei vom 13.4.2020 mit Größe 671 B image not shown  

Quelle  CardHolder.vdmpp   Sprache: VDM

 

\section{The Class Cardholder}

This class models a cardholder's name and address. This information is
used to post an account statement. The class provides standard
read/write operations.

\begin{vdm_al}
class Cardholder

types
  public Address = seq of char;
  public Name = seq of char;

instance variables
  name : Name;
  address : Address;

operations
  public Create : Name * Address ==> Cardholder
  Create(nm,addr) ==
    (name := nm;
     address := addr;
     return self);

  pure public GetName : () ==> Name 
  GetName () ==
    return name;

  pure public GetAddress : () ==> Address 
  GetAddress() ==
    return address;

end Cardholder
\end{vdm_al}





Messung
CHZG
989710098

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland