answersLogoWhite

0


Best Answer

Over abstraction, in computer programming terms, means that you use inheritance too often in your code. If you look for any two classes which share a common function and make an abstract class for them to inherit, then you are most likely guilty of over abstraction.

This is a common problem found in programmers new to the world of object-oriented programming.

Much of this is a Coding Style subjective answer, but overall, I think useful:

A good rule of thumb is that you are over-abstracting your problem if a class hierarchy has more than about a half-dozen ancestors before it gets to a pre-defined type. That is, if your program subclasses a library object (or the base Object) more than about 6 times, you should really re-consider how you've laid out your inheritance tree.

Additionally, very, very few inheritance trees should have more than one user-defined Abstract class per branch.

Take a look a the Java Class Library tree - I can't name any class which has more than 4 subclass-ings from Object.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What Are the effects of over abstraction?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which is a high level abstraction over semaphore?

Monitor


When was In Abstraction created?

In Abstraction was created on 2011-12-06.


What is procedural abstraction in software engineering?

When we consider a modular solution to any problem, many levels of abstraction can be posed. At the highest level of abstraction, a solution is stated in broad terms using of the problem environment. At lower levels of abstraction, a mmore detailed description of the solution is provided.


Who is an electrical engineer?

AN INDIVIDUAL WHO TURNS ABSTRACTION INTO MALFUNCTION... AN INDIVIDUAL WHO TURNS ABSTRACTION INTO MALFUNCTION...


What is data abstraction and data hiding in oops concepts?

abstraction is show nonessential data to user ,


Did the Greco-Romans introduce abstraction into art?

No, abstraction is mainly an invention of 20th century artists.


Byzantine artists were the first Western artists to?

Byzantine artists were the first Western artists to develop the use of abstraction.


What is memory abstraction?

Memory abstraction would involve separating certain memories, or pieces of them from something else.


how do you make an abstraction?

ok


What is data abstraction in c sharp?

Abstraction means that all information exist but only the relevent information is provided to the user. Encapsulation assists abstraction by providing a mean of suppressing the non-essential details.


What is physical abstraction in data abstraction?

Physical abstraction in data abstraction refers to hiding the implementation details of how data is stored and accessed. It allows programmers to work with high-level concepts of data without needing to understand the underlying physical structures. This separation enhances modularity and simplifies the complexity of software systems.


What is data abstraction?

Data abstraction is the reduction of a body of data to a simplified representation of the whole. Data abstraction is usually the first step in database design in order to create a simplified framework that can be added to in order to complete the database.