Skip to content

Commit da5854c

Browse files
authored
Update BasicOfInheritance.md
1 parent f4a7a09 commit da5854c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Class/BasicOfInheritance.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
### Basic Of Inheritance
44
- Inheritance is an a mechanism in which one class acquire the properties and attributes of an another class.
5-
-Using inheritance we can reuse the fields and methods of an another class.
6-
- In inheritance there are two terms
5+
- Using inheritance we can reuse the fields and methods of an another class.
6+
7+
In inheritance there are two terms
78

89
1. Base class(Parent Class)
910
2. subclass(Child class)
@@ -40,9 +41,8 @@ class <ChildClassName>(ParentClassName,ClassName2):
4041
```
4142
You can derive parent class attributes in child class there are two different ways
4243

43-
1.Using super keyword
44-
45-
2.Using Class Name
44+
1. Using super keyword
45+
2. Using Class Name
4646

4747
### 1. Using super
4848
Syntax:

0 commit comments

Comments
 (0)