What is abstraction and encapsulation give real life example?
Both abstraction and encapsulation are underlying foundations of object oriented thought and design. So, in our cell phone example. The notion of a smart phone is an abstraction, within which certain features and services are encapsulated. The iPhone and Galaxy are further abstractions of the higher level abstraction.
What is difference between abstraction and encapsulation in C# with example?
In this blog we will lean about Abstraction and Encapsulation. Difference between Abstraction and Encapsulation.
Difference between Abstraction and Encapsulation.
Abstraction | Encapsulation |
---|---|
Abstraction is used for hiding the unwanted data and giving onlyrelevant data. | Encapsulation is hiding the code and data into a single unit toprotect the data from outer world. |
•
Nov 30, 2018
What is the difference between abstraction and abstract class?
abstract class a type of class that object can not be create it contain abstract or not abstract method while abstraction is mechanism of data hiding simply , abstract class implements abstraction for hiding complexity . Abstract class is a class with abstract methods & non abstract methods .
What is the difference between polymorphism and abstraction?
1) Abstraction allows a programmer to design software better by thinking in general terms rather than specific term while Polymorphism allows a programmer to defer choosing the code you want to execute at runtime.
David Nilsen is the former editor of Fourth & Sycamore. He is a member of the National Book Critics Circle. You can find more of his writing on his website at davidnilsenwriter.com and follow him on Twitter as @NilsenDavid.