Yahoo India Web Search

Search results

  1. Apr 13, 2009 · Short Answer. Encapsulation - Hiding and/or restricting access to certain parts of a system, while exposing the necessary interfaces. Abstraction - Considering something with certain characteristics removed, apart from concrete realities, specific objects, or actual instances, thereby reducing complexity.

  2. Sep 26, 2012 · Data abstraction is a different concept from an abstract class. Data abstraction - It means hiding the implementation and showing only essential information. Practically, we can use access-specifiers like public, private, protected, etc to achieve abstraction. For eg, Private functions/variables cannot be used accessed outside the class.

  3. Feb 4, 2015 · 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.

  4. 3. In simple term, Abstraction is conceptual and Poly is behavioral. In order to achieve abstraction in OOP, you need Poly. Abstraction in object oriented programming is a concept or design pattern I may say, which enables better isolation, loosely coupling thus testability, and reusability and extensibility.

  5. Oct 6, 2013 · Data abstraction is a desirable thing. OOP is a programming style that provides data abstraction. You can achieve data abstraction in many different ways. On top of that, it's perfectly possible to write in an object-oriented style in C. It's just more verbose and noisy than it is in other languages. Give a look to GObject.

  6. Dec 16, 2009 · 1.Main difference is methods of a Java interface are implicitly abstract and cannot have implementations. A Java abstract class can have instance methods that implements a default behavior. 2.Variables declared in a Java interface is by default final. An abstract class may contain non-final variables.

  7. Aug 11, 2011 · Quite simply, abstraction is the art of limiting your dependencies. The less you depend on, the more abstract you are. For example, if you write a DirectX renderer, then you're abstracted from what graphics card vendor and model you're running on. If you write another layer, you can be insulated from what OS you're running on.

  8. Oct 7, 2010 · The abstraction is that we are working with an object graph, where single-value attributes and mult-value attributes are just attributes. But the implementation as a relational database backed data store leaks... as the integrity system of the RDBS appears through the thin veneer of an object interface.

  9. The abstraction happening is depicted by the red line. This is the only (pretty powerful) abstraction achieved by interfaces. The implementation details of the various variants of void Display() are hidden from User. It can just call IDisplayable.Display() and through polymorphism the correct method gets called.

  10. Nov 16, 2016 · Abstraction hides the implementation details and shows only the functionality to the user. Abstraction helps to reduce the complexity of the code. We can't create objects of an abstract class. Inheritance: Inheritance is the methodology of creating a new class using the properties and methods of an existing class.

  1. People also search for