Consider the real-life class named StatelnTheUnitedStates. Name some real-life attributes of this class that are static and instance. Create another example of a real-life class and discuss what its static and instance members might be.
This is what I have so far can you direct me
// Class StateInTheUnitedStates describes what a StateInTheUnitedStates is
class StateInTheUnitedStates
{
// ...
}
// You can use class StateInTheUnitedStates to create objects (instances of class StateInTheUnitedStates)
StateInTheUnitedStates myState = new State();
StateInTheUnitedStates cousinsState = new State();
StateInTheUnitedStates friendsState = new State();
Comments
Leave a comment