B.3.2.2 Polymorphism and Abstraction

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

7 Terms

1
New cards

2 Types of polymorphism

  1. Dynamic

  2. Static


2
New cards

Static Polymorphism

When a same method or operator operators differently depending on the type of data or parameters provided. It happens in compile time. Method Overloading

3
New cards

Dynamic Polymorphism

When a method call produces a different behaviour depending on the object that calls it, usually through methods overriding the inheritance. It is run time polymorphism. Method Overriding

4
New cards

Advantages of polymorphism

  1. Flexibility

  2. Maintainability

  3. Reusability

  4. Extensibility


5
New cards

Polymorphism

It allows object from different classes to use the same method name but exhibits different behaviour.

6
New cards

Abstarction

It hides the complex internal implementations of the system and displays only the essential information and functionality to the user

7
New cards

Advantages of Abstraction

  1. Reduce complexity

  2. Enhancing Reusability

  3. Improving Maintenance

  4. Facilitating Collaboration