Answer the question
In order to leave comments, you need to log in
What are the advantages and disadvantages of abstraction in object oriented programming?
I would like to know the advantages and disadvantages of this method, since not one book from which I read this is not described.
Answer the question
In order to leave comments, you need to log in
Advantages: the application becomes more flexible, you can easily change the part you like.
Disadvantages: code becomes harder to understand
Take the entity telephone and the action call.
How it should look like for the client code:
Phone phone = new CellPhone();
phone->call('number');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question