MDrivenStart Class
(Created page with "You can change what Package a class belongs to. It is good practice to write an explanation on the background information for this class in the code comment. It will help you...")
 
No edit summary
Line 1: Line 1:
You can change what Package a class belongs to.
You can change what Package a class belongs to.
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 on the background information for this class in the code comment. It will help you remember for what purpose 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.
 
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 attribute 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.
 
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)
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
 
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}}

Revision as of 10:50, 8 July 2020

You can change what Package a class belongs to.

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.

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 attribute 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 more on inheritance in uml here

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 8 months ago on 08/16/2023. What links here