DCIT50 (LEC) Flashcards
what is the programming model used in functional programming?
declarative
what programming model do object-oriented programming uses?
imperative programming model
in functional programs, what are the main elements of the code?
variables and functions
in object-oriented programs, what are the key elements?
objects and methods
it is a programming paradigm that provides a means of structuring programs so that properties and behaviors are bundled into individual objects
object-oriented programming
it models real-world entities as software objects that have some data associated with them and can perform certain operations
object-oriented programming
it is a group of objects that share common properties and behavior
class
it is a blueprint or template from which objects are created
class
it is an instance of a class
object
they are basically an encapsulation of data variables and methods acting on that data into a single entity
objects
these are variables of a class that are shared between all of its instances
class attributes
they are owned by one specific instance of the class and are not shared between instances
instance attributes
what are the qualities of object-oriented model?
classes and objects
encapsulation
abstraction
inheritance
polymorphism
it is where the blueprint for an object is defined
class
it defines the methods, attributes, and other aspects of the object
class