Object-oriented programming | 2SourceFort
Object-oriented programming
Hey there, everyone,Everyone says initial concentrate oops
Why, oh why, do we have to concentrate on that?
Answer is yes
Object-oriented thinking is a wonderful technique to comprehend the problem you’re trying to solve.
It enables you to create software that is easier to maintain and comprehend for others.
What is oops?Really, What is oops?
oops is a brand-new programming style or pattern that incorporates real-world elements.
Objects, of course, have their own characteristics and methods. oops was intended to address procedural language’s shortcomings, such as reusability and maintainability.
The main concepts of oops’
Object 1
Class 2
Inheritance 3
Abstraction 4
Encapsulation 5
Polymorphism 6
ObjectA real-world entity is defined as an object for example person or office or school).
We can refer to an object as a class instance.
It is made up of data properties (variables/attributes), and tasks (methods/functions).
ClassA class is a blueprint that an object must adhere to.
It is made up of items.
EncapsulationThe term “encapsulation” refers to the binding of variables and methods into a single entity.
AbstractionThe term “abstraction” refers to the practice of displaying only the most important aspects of a system while concealing the implementation details.
InheritanceInheritance is the process of passing properties from one class to another.
Polymorphism
Polymorphism is a term that combines two terms.
Method overload is used to implement different services with the same name domain.