Gallery
Contact us
Go to Moovly.com
Login
Oop
Use as template
Embed video
Report abuse
Oop
Published on 21 September 2021
Animated video of inheritance object oriented programming
CS
Chitrani Somkuwar
Chitrani's Personal Gallery
Transcript
00:44
Suppose we have two classes
00:46
Bank in 90's
00:46
Bank in 20's
00:46
1.Add money
00:47
2.Withdraw money
00:48
3.Take loan
00:49
4.Display account details
00:50
Suppose we have written code for these features
00:50
Banks in 20's will also have features which were in 90's
00:51
+
00:51
5.Online money transfer
00:52
6.Online pay cheque
00:53
7.Use of debit/credit cards
00:54
So we have to write thousand lines of code which was in 90's
00:58
But this is not the ideal way
00:60
since it will take a lot of time
01:02
Here we can use Inhertitance
01:03
We will connect two classes
01:04
So that Bank's in 20's
01:05
can access Bank's in 90's features
01:06
Suppose we made two classes
01:07
Suppose we have written code for these features
01:07
4.Display account details
01:07
3.Take loan
01:07
2.Withdraw money
01:07
1.Add money
01:07
Bank in 90's
01:07
5.Online money transfer
01:07
6.Online pay cheques
01:07
7.Use of debit/credit cards
01:07
+
01:07
Banks in 20's also have features which were in 90's
01:07
Bank in 20's
01:10
Since we are connecting two classes we don't need to write this code again
01:13
Suppose we made two classes
01:13
Bank in 90's
01:13
Suppose we have written code for these features
01:13
4.Display account details
01:13
3.Take loan
01:13
2.Withdraw money
01:13
1.Add money
01:13
7.Use of debit/credit cards
01:13
6.Online pay cheques
01:13
5.Online money transfer
01:13
5.Online money transfer
01:13
Bank in 20's
01:14
This is called as Base class or Parent class
01:14
Connected
01:15
This is called as Derived class
01:17
Objects of derived class
01:18
CAN ACCESS
01:19
+
see all
Previous video
Next video