+ 4

can anyone tell me what is the abstruct class ?? n how I can use it ?? n what I can use it for ????

22nd Dec 2016, 3:14 PM
marwa hereh
marwa hereh - avatar
2 Answers
+ 2
Well, think about fishes. All fishes is a fish, and share some common characteristics. But no fish is just a fish, they all have a certain species. Seebass and salmon is a fish, therefore they inherit fish. Fish is abstract as eath species needs its own class and fish is the common abstract class.
22nd Dec 2016, 3:54 PM
Mattias Eriksson
Mattias Eriksson - avatar
+ 1
thanks alot but can u tell me when I can use it n what for ??
22nd Dec 2016, 8:21 PM
marwa hereh
marwa hereh - avatar