OOP 1 Flashcards
What is OOP?
Object Oriented Programming
It is a type of programming which uses objects and classes in its functioning.
Object Oriented Programming
It aims at binding together data and function to work on these data sets into a single entity to restrict their usage.
Object Oriented Programming
It allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects.
Object Oriented Programming
What is UML?
Unified Modeling Language
It represents a unification of concepts and notations presented by the three amigos in their respective books.
Unified Modeling Language
Two Major Components of UML
Meta-model and Notation
The standard data representation that makes UML unique.
Meta-model
What does CASE mean in manufacturing?
Connectivity, Autonomous, Sharing/Subscription, Electrification
The UML ____ is rich and full bodied.
Notation
Two Major Subdivisions of UML Notation
for Modelling Static Elements
for Modelling Dynamic Elements
Classes, Attributes, and Relationships are types of?
Static Elements
Objects, Messages, and Finite State Machines are types of?
Dynamic Elements
What diagrams are used to present Static Models?
Class Diagrams
Basic Concepts of Object Oriented
Class
Object
Methods
Encapsulation
Polymorphism
Abstraction
Inheritance
What are the two main aspects of object oriented programming?
Classes and Objects
It is a data-type that has its own members.
Class
It is the blueprint for an object in object oriented programming language.
Class
It is the basic building block of object oriented programming.
Class
It is a user-defined data-type.
Class
Are variables of the class.
Data Members
Are the methods that are used to manipulate data members.
Member Functions
It defines the properties of the class.
Data Members
It defines the behavior of the class.
Member Functions
It is an instance of a class.
Object
It is an entity with characteristics and behavior that are used in the object oriented programming.
Object
Is the entity that is created to allocate memory
Object
What syntax is used to access class attributes?
Dot Syntax (.)
Are functions that belongs to the class.
Methods
Two Ways to Define Functions that Belongs to a Class
Inside Class Definition
Outside Class Definition
It is the concept of wrapping of data and functions together as a single unit.
Encapsulation
What do you call prevention of data direct access by the program.
Data Hiding or Information Hiding
It refers to the act of representing essential features without including the background details or explanations.
Abstraction
A class is called as this since it uses the concept of data abstraction.
Abstract Data Type
What is ADT?
Abstract Data Type
It is the capability of a class to inherit or derive properties or characteristics from other class.
Inheritance
It allows reusability for object oriented programming.
Inheritance
The class that derives properties from other class
Child Class
The class from which properties are inherited
Parent Class or Base Class
Types of Inheritance in C++
Single
Multiple
Multi Level
Hierarchical
Hybrid
What does “poly” and “morphism” mean in polymorphism.
Many; Form
It means the ability to take more than one form.
Polymorphism
Different ways to achieving polymorphism in C++
Function Overloading
Operator Overloading
Functions with the same name that can do multiple types based on some condition.
Function Overloading
The operator can have multiple behavior in different instances of usage.
Operator Overloading