|
here is an example for a Person class which has variables of name and age with a constructor and some basic methods
-------------------
Person
------------------
//variables
-name: String
-age: int
---------------------
//constructor
+Person(String name, int age)
creates a Person object with a given age and name
//methods
+setName(String name) //just for example
+getName() : String
+setAge(int age)
+getAge(): int
------------------------------------
|