Features of Object oriented programming :
Abstraction:
Process of exposing the relevant details and hiding the irrelevant details.
Let us consider a real world example, if you are switching on a TV using remote, you will press ON button in the remote. If you want to change the channel you will press the channel changing button. In this case you will not be knowing what is the internal functionality when that button is pressed.
One will know that if we press this button the channel will be changed. This is called abstraction in simple terms.Not exposing the entire functionality and showing the relevant details.
Abstraction in java is achieved by means of Abstract class and Interface. [ will discuss in the upcoming posts]
Abstraction:
Process of exposing the relevant details and hiding the irrelevant details.
Let us consider a real world example, if you are switching on a TV using remote, you will press ON button in the remote. If you want to change the channel you will press the channel changing button. In this case you will not be knowing what is the internal functionality when that button is pressed.
One will know that if we press this button the channel will be changed. This is called abstraction in simple terms.Not exposing the entire functionality and showing the relevant details.
Abstraction in java is achieved by means of Abstract class and Interface. [ will discuss in the upcoming posts]
Sign up here with your email
ConversionConversion EmoticonEmoticon