What is abstraction in programming?

  Рет қаралды 100,009

iAmDev

iAmDev

7 жыл бұрын

Get "Zero to Hero Dev" - a FREE roadmap for your future development career. CLICK HERE: iamdev.net/hero
---------------------------
Really simple - abstraction is hiding stuff!

Пікірлер: 60
@Retrosenescent
@Retrosenescent 4 жыл бұрын
Correction: it doesn’t hide functionality; it hides implementation. Functionality is public, whereas implementation is private.
@IAmDevtube
@IAmDevtube 4 жыл бұрын
fair point
@marikselazemaj3428
@marikselazemaj3428 2 жыл бұрын
Well said. What it does isn't hidden, how it does it is hidden.
@dosomestuff1949
@dosomestuff1949 8 ай бұрын
true, for example, you know the functionality of a print statement in java for example, but you don't necessarily know how that print function was made (
@kalibee6234
@kalibee6234 4 жыл бұрын
Jeez thank you so much. Clear and straight to the point.
@CarlosRodrigoB
@CarlosRodrigoB 2 жыл бұрын
It helps me so much, thanks man... think understand abstraction as all code/form to resolve a project that's hidden form the final user, who send the enter and get back a result for this. That part are called Abstration because it changes from each person who create a method to resolve the project... Hope be right, and help someone...
@JayJay-sg7zl
@JayJay-sg7zl 3 жыл бұрын
Saw 5 videos on this topic and this is the best explanation lol
@tabithae3679
@tabithae3679 2 жыл бұрын
I agree. This is the best explanation I've seen so far.
@JayJay-sg7zl
@JayJay-sg7zl 2 жыл бұрын
@Darzalas where can u find a better explanation it his definition is incorrect?
@kaansener
@kaansener 6 жыл бұрын
very simple and easy to understand explanation thank you
@chenyangwang7232
@chenyangwang7232 2 жыл бұрын
what would be the difference between abstraction and encapsulation? seems both are intending to hide the actual implementation
@PeachIsLive
@PeachIsLive 6 жыл бұрын
Great video , loved it
@isharamadusankadesilva7139
@isharamadusankadesilva7139 4 жыл бұрын
abstract class can't create object but video example create a phone object please explain ?
@ankush1880
@ankush1880 6 жыл бұрын
Thank you ❤
@Donald__1424
@Donald__1424 18 күн бұрын
The future of Binance: an exclusive interview with the CEO
@nguyenngochuy4140
@nguyenngochuy4140 6 жыл бұрын
great video
@georgeabuladze770
@georgeabuladze770 Жыл бұрын
broooo you really cleared my mind thank you
@MBen_Delphi
@MBen_Delphi 2 жыл бұрын
Just a correction and modification of some concepts ------- Abstraction is not that concept of showing or providing only the important things and hiding all unnecessary or complex details from the user (the programmer), as everyone thinks You kindly explained that Abstraction is to provide only what the user can get, in short, to provide only the Important points in the classes that will be instanciated using an Object, and this is unfortunately wrong.... And if it was actually in this sense, the name would have been Only-Important-members or Hidding Data and so on... --------- In short, your concept is part of the definition of Encapsulation and not Abstraction, and it is very close to the concept of inheritance more than Encapsulation --------- Linguistically: Abstraction means intangible or imaginary or virtual or the opposite of Concrete which means tangible, real or active --------- Programmatically: It specifically means the Class and the Interface (interface is not available in all programming languages). The important thing is the Class in itself. And any Class in OOP is considered as a Template, Model, or Map of something in Reality. That thing may be real or imaginary, and as it may be tangible or intangible, it does not matter the Projection and how .... but it matters The Classes that will Ultimately Express an Entity, Component, or Object that we will deal with later.... -------- So Abstraction in OOP will be like that: Modeling the Real World. and No more than this Definition .. -------- There are also inactive, intangible, or Abstract Classes that we call them Class Model, and they are somewhat similar to the Interface. This type has a directive of type Abstract and it does not accept instanciate with Objects, that is, it has no Objects to represent it (No Instances). And her task is Only to make a Model or Template for her children's that inherited from and finally can share members from base Abstract Classe. And this technique is also within the definition of the corner Abstraction And my concept here is in modeling and not in the role of the abstract class (because its role in terms of providing only what the sons classes can share as members and this is a part from the corner of inheritance) finally : Abstract classes is an Abstract Model for a Concrete classes Where this concrete will be a Models for some objects in our Real World... -------- Interfaces are also a Model or Abstract that Classes use them in-order to benefit from those members in that Interface.. So, Abstraction OOP is only about these three things in C Sharp, Java and Delphi and maybe C++ builder(because all of them have Interface as far as I know now) ------ As for the definition that you explained in the video, it is related to Encapsulation and Inheritance rules and not Abstraction at All .. ----- Abstraction is the first Step Rule of OOP Pillars wich is the Classes and Interfaces ... Abstraction is not more than a Modelling ... ----- And thank you for your understanding ...
@favaris_
@favaris_ Жыл бұрын
Thanks for this clarification! It's really better than the video itself.
@VagatorErro
@VagatorErro Жыл бұрын
thank you for his wonderful writeup which made things clearer for me and avoided faulty learning an important subject in OOP
@Geedimensions
@Geedimensions 7 жыл бұрын
😂 that ending #dirtysecret
@IAmDevtube
@IAmDevtube 6 жыл бұрын
:D
@illmatic33
@illmatic33 5 жыл бұрын
You are Dev! Damn right you are!!!!
@victorsolomon8427
@victorsolomon8427 3 жыл бұрын
You are a good teacher
@javafrm
@javafrm 7 жыл бұрын
this video is very useful to me
@subodhsharma5928
@subodhsharma5928 7 жыл бұрын
very nice
@BhanuPrathap
@BhanuPrathap 4 жыл бұрын
Thankyou
@vamsisaivenkat
@vamsisaivenkat Ай бұрын
your way of explaining the stuff is very nice I will take some of your style and use in my coding channel if you don't mind
@MrAnas123654
@MrAnas123654 3 жыл бұрын
best explanation on YT
@TheShafted178
@TheShafted178 Жыл бұрын
Man it's too tough to hide it ima do it I WAS NEVER A GOOD PROGRAMMER IN THE FIRST PLACE phew that felt nice
@IAmDevtube
@IAmDevtube Жыл бұрын
Most of us still aren’t, but if your product works and you make money you don’t have to be perfect
@radiousis49
@radiousis49 4 жыл бұрын
This is a way of seeing the world. Use abstractions irl!
@oguzcanaygun5267
@oguzcanaygun5267 2 жыл бұрын
thanks you so much
@cd-stephen
@cd-stephen Жыл бұрын
great vids - new sub
@tejasmankar71
@tejasmankar71 6 жыл бұрын
but what is meaning for this sentence "object are python abstraction for data"...?
@deepdive1338
@deepdive1338 6 жыл бұрын
Tejas Mankar an object in programming is simply, wait for it, an object, wait wait, let me explain, think of a snake game, if u are building one, you need a snake object, maybe it's a function or a class called snake that has the properties of a snake, you could give it length, speed, etc. This is what an abstraction is, because u have already created the snake object, u dont need to recreate the snake if u want to use for something else later in the program, u can just the snake that u already have
@deepdive1338
@deepdive1338 4 жыл бұрын
@Username what is?
@akshatsharma1683
@akshatsharma1683 3 жыл бұрын
@@deepdive1338 Weird explanation...
@abbasafridi4732
@abbasafridi4732 2 жыл бұрын
so Abstraction is a blackbox, where you apply input and get output without caring about what’s inside!
@JevWD
@JevWD 2 жыл бұрын
Out of sight out of mind
@Naobora
@Naobora 3 жыл бұрын
Thank you so much, oh my god.
@adamloepker8057
@adamloepker8057 8 ай бұрын
Why cant my teacher be this clear? Thanks!
@angelogarcia1700
@angelogarcia1700 4 жыл бұрын
So is abstraction the divide between Front-end development and Back-end?
@tko9753
@tko9753 3 жыл бұрын
Thank you for the clear example, I got sick of the car example.
@dimuthusudesh850
@dimuthusudesh850 3 жыл бұрын
👍
@pikanoob
@pikanoob 5 жыл бұрын
isnt this encapsulation not abstraction?
@skylarkenneth2407
@skylarkenneth2407 5 жыл бұрын
It's more of the perspective. I think of it as this: abstraction is concerned with WHAT behaviors are available, while encapsulation is concerned with HOW to implement the behaviors. Business logic vs program logic.
@rlukinn
@rlukinn 6 жыл бұрын
IMHO You told us about encapsulation. I expected that you tell a story why in Java we call Interfaces an Abstract classes "ABSTRACTION"
@h0ph1p13
@h0ph1p13 5 жыл бұрын
Abstraction is not only "interfaces" and "abstract" classes. It's not only in Java. In fact all programming AND human languages can abstract things and are doing it all the time. The principle of abstraction is deeply rooted in the human mind and we're using it to build a whole bunch of things. I think this video explains it well from a programming perspective. To widen your understanding check out this for example: kzfaq.info/get/bejne/bLxhptVhvbzDfps.html it gives you a true feel of what abstraction can do in the world.. and if your programming. Interfaces/abstract classes are like.. only one of many possible ways to abstract things away. and about your question if it's not just encapsulation - no, it's not. Go check on wikipedia and see what both words mean and you will see the difference. I trust your ability to discern those two terms when you have a little more info :)
@freshnuts864
@freshnuts864 7 ай бұрын
LOL no need to attack me like that, TWICE.
@antisony2008
@antisony2008 6 жыл бұрын
Fake it 'til you make it
@shuaidea
@shuaidea 2 жыл бұрын
this is how u explian a problem
@musandlala7991
@musandlala7991 5 жыл бұрын
The ending my guy lmfsao
@selena4082
@selena4082 5 жыл бұрын
no
@vandeljasonstrypper6734
@vandeljasonstrypper6734 5 жыл бұрын
why is this sound like API but btw the new ipad pro is our bruh get it for more productive video
@strengthandlove_
@strengthandlove_ 4 жыл бұрын
said the same thing like 15 times, doesnt explain
@withstyle9216
@withstyle9216 5 жыл бұрын
The explanation is dead wrong. He is talking about encapsulation. Abstraction is totally different concept.
@ashleywilkonson386
@ashleywilkonson386 5 жыл бұрын
No, you're wrong. As I am typing this comment, I am using KZfaq's comment interface via abstraction. This is because I cannot currently see KZfaq's databases and as a user, I cannot perform queries. Everything is hidden from me.
@VagatorErro
@VagatorErro Жыл бұрын
this is a miss informed video on abstraction which a user has in detail explained, please delete it
@trollface1994
@trollface1994 Жыл бұрын
Thank You,
What is encapsulation in programming?
2:58
iAmDev
Рет қаралды 127 М.
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science
Рет қаралды 876 М.
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 24 МЛН
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 4,4 МЛН
What Is Abstraction in Computer Science
6:24
Codexpanse
Рет қаралды 71 М.
Abstraction Can Make Your Code Worse
5:13
CodeAesthetic
Рет қаралды 632 М.
The size of your variables matters.
11:03
Core Dumped
Рет қаралды 106 М.
why are switch statements so HECKIN fast?
11:03
Low Level Learning
Рет қаралды 393 М.
What is abstraction?
14:01
Eric Normand
Рет қаралды 748
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,1 МЛН
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 181 М.
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 497 М.
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН