abstractions?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

abstractions??

Who do abstractions work? It's complicated I didn't get it.

19th Jan 2017, 5:27 PM
Layla A Hammoury
Layla A Hammoury - avatar
2 Answers
+ 4
abstraction: to make simple; i.e animal is an abstraction of dog cat cow etc class animal { name weight etc } class animal::dog { speak() {woof} } class animal::cat { speak() {meow} } all animals share name weight etc.. simplify making lots of different animals..
19th Jan 2017, 5:56 PM
jay
jay - avatar
+ 2
Have you looked for tutorials on Google?
19th Jan 2017, 5:37 PM
Leon
Leon - avatar