Let’s Understand Classes And Objects In Programming for Simplicity.

There is An programming called

OOP : Object Oriented Programming.

This Was Very Hard To Understand in my school because the teacher directly horify us with words like polymorphism, Inheritance and other Words.

At here we will try to Understand Wha…


This content originally appeared on DEV Community and was authored by Shrikant Dhayje

There is An programming called

OOP : Object Oriented Programming.

This Was Very Hard To Understand in my school because the teacher directly horify us with words like polymorphism, Inheritance and other Words.

At here we will try to Understand What Are they not learn.

While Creating classes and objects in our program we should consider ourself something similar to A God, a virtual god and our software(app) as our virtual world.

We Create a Blueprint for our Characters in World Which is Class for example,

class Human {
  int total_hands = 2;
  int total_nose = 1;
  bool is_alive = true;
  ...
}

And The Objects are actual Characters of Our virtual world.

Same goes for other parts of the software program like vehicle, plant, machines, etc.,

There is Also An Scope for our Characters in virtual world.
Like Public The Part Visible to Everyone similar to face;
Private the part which is not visible or accesible to everyone directly similar to organs and last protected which is publicly available or visible under some rules like authority given by the Character to Other Characters.


This content originally appeared on DEV Community and was authored by Shrikant Dhayje


Print Share Comment Cite Upload Translate Updates
APA

Shrikant Dhayje | Sciencx (2021-12-21T18:43:07+00:00) Let’s Understand Classes And Objects In Programming for Simplicity.. Retrieved from https://www.scien.cx/2021/12/21/lets-understand-classes-and-objects-in-programming-for-simplicity/

MLA
" » Let’s Understand Classes And Objects In Programming for Simplicity.." Shrikant Dhayje | Sciencx - Tuesday December 21, 2021, https://www.scien.cx/2021/12/21/lets-understand-classes-and-objects-in-programming-for-simplicity/
HARVARD
Shrikant Dhayje | Sciencx Tuesday December 21, 2021 » Let’s Understand Classes And Objects In Programming for Simplicity.., viewed ,<https://www.scien.cx/2021/12/21/lets-understand-classes-and-objects-in-programming-for-simplicity/>
VANCOUVER
Shrikant Dhayje | Sciencx - » Let’s Understand Classes And Objects In Programming for Simplicity.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/21/lets-understand-classes-and-objects-in-programming-for-simplicity/
CHICAGO
" » Let’s Understand Classes And Objects In Programming for Simplicity.." Shrikant Dhayje | Sciencx - Accessed . https://www.scien.cx/2021/12/21/lets-understand-classes-and-objects-in-programming-for-simplicity/
IEEE
" » Let’s Understand Classes And Objects In Programming for Simplicity.." Shrikant Dhayje | Sciencx [Online]. Available: https://www.scien.cx/2021/12/21/lets-understand-classes-and-objects-in-programming-for-simplicity/. [Accessed: ]
rf:citation
» Let’s Understand Classes And Objects In Programming for Simplicity. | Shrikant Dhayje | Sciencx | https://www.scien.cx/2021/12/21/lets-understand-classes-and-objects-in-programming-for-simplicity/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.