DAMN! OOPS Contains all of these Properties. I never knew this!
Ever wanted to create your own website? 1,000+ templates are available to help you do it. All you have to do is choose the template you like the most and download it then customize the content, images, colors, and fonts. And you can do all this without having to deal with code at all and the best part is that It gets done within few hours.
What OOPS means?
Object-oriented programming System (OOPS) is a computer programming model that organizes software design around data, or objects, rather than functions and logic. An object can be defined as a data field that has unique attributes and behavior.
These are the Main Features of OOPS:
1. Objects
2. Classes
3. Ineritance
4. Polymorphism
5. Abstraction
6. Encapsulation
Let's see what Classes and Objects means:
That we have a Class Named as Dragonclass and this Dragonclass contains all the states and Behaviour to create real-time Dragon Objects.
Where, a class is a blueprint for creating objects (a particular data structure), providing initial values for state (member variables or attributes), and implementations of behavior (member functions or methods). The user-defined objects are created using the class keyword.
and objects are the things you think about first in designing a program and they are also the units of code that are eventually derived from the process.
This Dragonclass Tell us about various things which are:
1. Variables2. Methods
3. Objects
These Various things that we got from dragonclass are telling us more features further which are:
1. Variables
a. Name
b. Power
c. Health
d. Attacks
2. Methods
a. attack()
b. getpower()
c. gethealth()
d. PowerAttack()
3. Objects
a. Stricker
b. Tracker
c. Stoker
d. Boulder
e. Mystery
What Inheritance means?
When a class derives from another class. The child class will inherit all the public and protected properties and methods from the parent class. In addition, it can have its own properties and methods.
For eg:
Their are various ways or kinds of Inheritance lets see what are these types:
1. Single Inheritance2. Hierarchial Inheritance
3. Multilevel Inheritnace
4. Hybrid Inheritnace
5. Multiple Inheritnace
What Polymorphism means?
In Simple Language it is the ability to exist in many Forms.
But in context Polymorphism is one of the core concepts of object-oriented programming (OOP) and describes situations in which something occurs in several different forms. In computer science, it describes the concept that you can access objects of different types through the same interface.
For eg:
Polymorphism have its types also which are:
What Abstraction means?
In Simple term it is the Concept of hiding the internal details and describing things in simple terms.
OR
We can say Abstraction is selecting data from a larger pool to show only relevant details of the object to the user. It helps in reducing programming complexity and efforts. It is one of the most important concepts of OOPs.
What Encapsulation means?
Encapsulation refers to the bundling of data with the methods that operate on that data, or the restricting of direct access to some of an object's components.




