Skip to content

Commit bc0bae4

Browse files
committed
added oops concepts
1 parent 03dbcf8 commit bc0bae4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class Transport:
2+
def worlds_transport_system(self):
3+
print("cycle is the first transport system")
4+
5+
class New_Transport(Transport):
6+
def worlds_transport_system(self):
7+
print("Fastest Bike")
8+
9+
new_transport_object = New_Transport() # New Transport object
10+
new_transport_object.worlds_transport_system()
11+

0 commit comments

Comments
 (0)