-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOOPs Homework Level III Abstraction Bird.cpp
40 lines (31 loc) · 1.27 KB
/
OOPs Homework Level III Abstraction Bird.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <bits/stdc++.h>
#include <iostream>
using namespace std
int
main() {
// OOPs Homework Level III
// 1. Abstraction
// 2. Virtual Keyword
// Shallow Copy Vs Deep Copy
// 1. Delivering only essential information to the outer world while masking
// the background details.
// 2. It is a design and programming method that separates the interface from
// the implementation.
// 3. Real life e.g., various functionalities of AirPods but don't know the
// actual implementation/ working
// 1. To drive a car, one only needs to know the driving process and not the
// mechanics of the car engine
// Abstraction in Header files
// 1. Function's implementation is hidden in header files.
// 2. We could use the same program without knowing its inside working.
// 3. E.g., Sort0, for example, is used to sort an array, a list, or a
// collection of items, and we know that if we give a container to sort, it
// will sort it, but we don't know which sorting algorithm it uses to sort
// that container.
// Abstraction using Classes
// 1. Grouping data members and member functions into classes using access
// specifiers.
// 2. A class can choose which data members are visible to the outside world
// and which are hidden.
return 0;
}