Object-oriented programming (oops) is a style of programming characterized by the identification of classes of objects closely linked with the methods (functions) with which they are associated. It also includes ideas of inheritance of attributes and methods.
Here We can see:
class Animal
which means that we made a class name as Animal which contains objects like:
- Dog
- Cat
- Tiger
- Beer
Animal Dog = new Animal();
The programming with class and objects is called object oriented programming.

class:
In object-oriented programming , a class is a template definition of the methods and variable s in a particular kind of object . for Example:

object:
An object is a collection of properties, and a property is an association between a name (or key) and a value.

Abstraction:
it is process of hiding implementation details and only showing the functionality to the user.
Inheritance:
When a Base Class Inherit to the derived class that process is called inheritnce.
class Electronics
Derived class:
1. TV extends Electronics
2. Mobile extends Electronics
3. AC extends Electronics
Polymorphism:
when we create a same function in diffferent classes is called polymorphism. for example:
Animal sound();
we create a animal class then we can create sum more classes extends Animal:
Cat:
void sound('meow');
Dog:
void sound('bark');
Lion:
void sound('roar');
Encapsulation:
Encapsulation in Java is a powerful mechanism for storing the data members and data methods of a class together.
2 Comments
[…] on Rails is a popular back-end framework for building web applications. It is based on the Ruby programming language and provides a set of tools and libraries for building server-side functionality, […]
[…] and ready-to-use ingredients for automation greatly facilitates testing in Python. Python is object-oriented and functional. It allows choosing what suits your tasks better – functions or classes. […]