MDrivenStart Class
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
You can change what Package a class belongs to. '''[[MDrivenStart Package|Need to add a package]]'''?
You can change what Package a class belongs to. '''[[MDrivenStart Package|Need to add a package]]'''?


It is good practice to write an explanation on the background information for this class in the code comment. It will help you remember for what purpose you created it.
It is good practice to write an explanation of the background information for this class in the code comment. It will help you remember the purpose for which you created it.


The class is often given a ''default string representation'' that can be any expression - typically one of its own attributes of type string. '''[[MDrivenStart Attributes|Need to add an attribute]]'''?
The class is often given a ''default string representation'' that can be any expression - typically one of its own attributes of type string. '''[[MDrivenStart Attributes|Need to add an attribute]]'''?


The default string representation is used when a UI tries to display an object of your class without any information about what attribute to show
The default string representation is used when a UI tries to display an object of your class without any information about what attributes to show.


A class that acts as a ''superclass'' for another class is often marked as abstract to indicate that it should not be used directly - this will prohibit creation of objects. You can read [[UML Inheritance|more on inheritance in uml]] here.
A class that acts as a ''superclass'' for another class is often marked as abstract to indicate that it should not be used directly; this will prohibit the creation of objects. You can read [[UML Inheritance|more on inheritance in uml]] here.


Classes most often has '''[[MDrivenStart Associations|associations to other classes]]'''.
Classes most often have '''[[MDrivenStart Associations|associations to other classes]]'''.


Objects of classes are normally ''persistent'' (they are saved and shared between sessions) but can be made ''transient'' (they are short lived in the memory of the current session)
Objects of classes are normally ''persistent'' (they are saved and shared between sessions) but can be made ''transient'' (they are short-lived in the memory of the current session).


{{Template:MDrivenStart_Template}}
{{Template:MDrivenStart_Template}}
[[Category:MDrivenStart]]

Latest revision as of 07:17, 16 August 2023

You can change what Package a class belongs to. Need to add a package?

It is good practice to write an explanation of the background information for this class in the code comment. It will help you remember the purpose for which you created it.

The class is often given a default string representation that can be any expression - typically one of its own attributes of type string. Need to add an attribute?

The default string representation is used when a UI tries to display an object of your class without any information about what attributes to show.

A class that acts as a superclass for another class is often marked as abstract to indicate that it should not be used directly; this will prohibit the creation of objects. You can read more on inheritance in uml here.

Classes most often have associations to other classes.

Objects of classes are normally persistent (they are saved and shared between sessions) but can be made transient (they are short-lived in the memory of the current session).

Back One Back to Start Chat Updated!

This page was edited more than 9 months ago on 08/16/2023. What links here