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
they are created from classes
objects
it means to enclose all the important information in a capsule and expose all the other selected information to the outside world
encapsulation
it is what a developer needs to implement in the software or a product for a better user experience
abstraction
it is used to hide all the complexities and displays only essential information to the outside world
abstraction
it means inheriting someone’s characteristics
inheritance
they are one of the most essential and important characteristics of oops
combining and inheriting the objects and their properties
it means to have the same name of a method performing different tasks
polymorphism
it has the ability to display the message in more than one form
polymorphism
example of this is that a person can possess different characteristics at the same time
polymorphism