UML Flashcards
What is UML?
unified modeling language
what is identity?
a property of an object that distinguishes it from other objects
what is state?
describes the data stored in the object
what is behaviour
describes the operations the object carries out
what is class
collection of objects which are similar
what is encapsulation
wrapping of data and functions into a single unit.
data is not directly accessible to outside world
Only the operations or functions or methods wrapped in the class can access it
what is abstraction
Abstraction is the act of representing the essential features without including the background details or explanations. This is a fundamental principle of modeling.
So abstraction is looking only at the information that is relevant at the time by hiding details so that there is no confusion in understanding the system
what is inheritance
The process by which objects of one class acquire the properties of objects of another class is known as inheritance.
what is sub class and super class
A class known as the subclass or the child class can inherit attributes and operations from another class known as the superclass or the parent class.
what is polymorphism
Polymorphism means the ability to take more than one form.
what are types of polymorphism
function polymorphism
operator polymorphism
what is function polymorphism
An operation may exhibit different behavior in different instances depending upon the data used in the operation.
what is operator polymorphism
This is the process of making an operator to exhibit different behaviors in different instances.
give example of identity
yourCar and myCar
example of state
the brand name as Tata, the model name as Nano, the color as yellow for myCar and the brand name Hyundai, the model name as i10, the color as red for yourCar
what are building blocks of UML
things
relationships
diagrams