Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
SamplePPT_Class Concept_intro3.pptx
1.
2.
3.
4.
5. Obtaining object of a
class is two step
process.
1. Get a variable declared as a class
type.
Eg. Box mybox;
2. We must acquire actual physical copy
of the object and assign it to that variable.
Eg. mybox=new Box();
This variable
‘mybox’ does not
define an object but
simply refer to an
object.