OOPS( Object-Oriented Programming ) Concept in Java : As we all know Java is Object Oriented programming language and what exactly it means in simple words to understand can be described as whatever is going to happen by Java , it will be based on some Object. So next question can be what is Object ? , "Object is the representation or reference of Class to access its properties and use its behaviour ", now next is What is Class in java and answer to this question is "A class in java is the blueprint of Properties and Behaviours of it's own Object" as explained in my previous post BASIC OVERVIEW OF JAVA (SESSION 1) Let's understand through an example : public class FirstJavaProgram { int firstNumber=10; int secondNumber=20; public int sum(int fNum, int sNum){ return fNum+sNum; } public static void main(String[] args) { //our logics ...
Comments
Post a Comment