fixed typos (#29352)
* fixed typos * fixed typos guide/english/design-patterns/object-oriented-programming/index.md * fix typos * fix typo css preprocessor index.md
This commit is contained in:
committed by
Randell Dawson
parent
b78239be2b
commit
e33f06348d
@ -12,7 +12,7 @@ In this paradigm, entities are represented as real world data. For instance, we
|
||||
|
||||
## OO concepts
|
||||
What makes OO programming powerful is its ability to do the following:
|
||||
* Inheritence
|
||||
* Inheritance
|
||||
* Polymorphism
|
||||
* Encapsulation
|
||||
* Abstraction
|
||||
@ -25,7 +25,7 @@ Another extremely useful concept is that of inheritance. The idea is that a clas
|
||||
|
||||
This helps in reusing code and making your code structure much more clean. Data hiding is another cool feature. In OO, we have the notion of private and public attributes. Private attributes can be accessed and modified only by methods of that particular class, while public data can be modified from anywhere in the program (within scope obviously).
|
||||
|
||||
OO programming represents problem as a real-life statement and thus helps us solve those problems in an effective way. An object in OO programming represents a real-life entity. A class represents a blueprint of a number of objects. An object can be considered as a instance of a class.
|
||||
OO programming represents problem as a real-life statement and thus helps us solve those problems in an effective way. An object in OO programming represents a real-life entity. A class represents a blueprint of a number of objects. An object can be considered as an instance of a class.
|
||||
|
||||
### Example:
|
||||
See the image below. It represents a blueprint of a class named car. An instance of this class can be a real-life car that performs functionalities such as getFuel(), setSpeed(), drive(), etc.
|
||||
|
Reference in New Issue
Block a user