Abstraction

Abstraction

Normally abstract means eliminate, here show only the necessary details and hide other details. abstract also is a keyword in java.
Eg:- In this picture, we can access the iPhone but we didn't know about the inside functions , circuit  and other things. like wise in the abstract concept it's show the appropriate details and hide the inappropriate details.



Example code for the Abstraction Code

    abstract class MobilePhone
    {
        public void Calling();
        public void SendSMS();
    }

    public class Nokia1400 : MobilePhone
    {

    }

    public class Nokia2700 : MobilePhone
    {
        public void FMRadio();
        public void MP3();
        public void Camera();
    }

    public class BlackBerry : MobilePhone
    {
        public void FMRadio();
        public void MP3();
        public void Camera();
        public void Recording();
        public void ReadAndSendEmails();

    }