Skip to content

Commit

Permalink
Fixed typos (#2585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Micalizzi authored Nov 28, 2023
1 parent 752b174 commit b0db7b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
7 changes: 3 additions & 4 deletions concepts/inheritance/introduction.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Introduction

Inheritance is a core concept in OOP (Object Oriented Programming). It donates IS-A relationship.
It literally means in programming as it means in english, inheriting features from parent(in programming features is normally functions
and variables).
Inheritance is a core concept in OOP (Object-Oriented Programming). It donates IS-A relationship.
It literally means in programming as it means in english, inheriting features from parent(in programming features is normally functions and variables).

Consider a class, `Animal` as shown,

Expand All @@ -11,7 +10,7 @@ Consider a class, `Animal` as shown,
public class Animal {

public void bark() {
System.out.println("This is a animal");
System.out.println("This is an animal");
}

}
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/wizards-and-warriors/.docs/hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The whole inheritance concept has a lot to do with the concepts around [overridi

- In Java, the `toString()` method is actually present inside the `Object` class (which is a superclass to all the classes in Java).
You can read more about it [here][object-class-java].
- To override this method inside your implementation class, you should have a method with same name i.e `toString()` and same return type i.e `String`.
- To override this method inside your implementation class, you should have a method with same name i.e. `toString()` and same return type i.e. `String`.

## 2. Making Fighters not vulnerable by default

Expand Down
7 changes: 3 additions & 4 deletions exercises/concept/wizards-and-warriors/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

## Inheritance

Inheritance is a core concept in OOP (Object Oriented Programming). It donates IS-A relationship.
It literally means in programming as it means in english, inheriting features from parent(in programming features is normally functions
and variables).
Inheritance is a core concept in OOP (Object-Oriented Programming). It donates IS-A relationship.
It literally means in programming as it means in english, inheriting features from parent(in programming features is normally functions and variables).

Consider a class, `Animal` as shown,

Expand All @@ -13,7 +12,7 @@ Consider a class, `Animal` as shown,
public class Animal {

public void bark() {
System.out.println("This is a animal");
System.out.println("This is an animal");
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ abstract class Fighter {
/**
* this method sets the default vulnerability to false for all the child classes.
*
* @return the vulnerability i.e false.
* @return the vulnerability i.e. false.
*/
boolean isVulnerable() {
return false;
Expand Down

0 comments on commit b0db7b6

Please sign in to comment.