OOP terms Flashcards
what are the attributes of the object
its state eg colour, age,, size
what is the behaviour of the object
its functionality eg walk, sing
what is a class
a blueprint for a custom type
what does UML stand for
unified modeling language
what does + mean inUML
Public
what does - mean in UML
Private
create an object of class student
Student studentName = new Student();
what does encapsulate mean
not allow it to be exposed to the world
when are getters and setters used
when variables are private
why do we use getters and setters rather than leaving variables public
so that they cant be changed to crap eg length being a minus number
what is stack memory used for
variables and function calls
what is heap memory used for
to store objects
formal name for getters and setters
instance methods
accessors and mutators
creating an array of objects
type(class name) arrayName = new type[x]
what is method overloading
when there are more than one method with the same name but the compiler can tell them apart by their parameters/ list of parameters
why might static variables be used
universal to everyone
how are static variables accessed
ClassName.VariableName
can static variables be accessed outside of the class without creating an pbject of that class
yes