OOPs Introduction
OOPs is a programming technique and its full form is Object Oriented Programming System abbreviated as OOPs.
Many times we heard about the OOPs concepts but most of us don't know what exactly it is.
Mainly OOPs conceptual base it describes how the Objects should be accessible while working with different concepts of OOPs.
What is an Object? Object is nothing but an entity which describes a real world data in other words Object contains a data fields which resembles to the real world.
Lets concentrate on one example how object will be like.
Consider a Student which is real world entity and contains the following fields.
Student Name
Student Class
Roll Number
School/College Name
Combination of the above four fields will be called as an Object in Computer programming pattern which in terms nothing but a student.
In other words Student is an Object and which is an real world entity , there can be more number of Students. Each student will be an object and multiple students is nothing but an Objects of real world entities.
OOPs is nothing but a principles how the Object should be accessible based on the principle.
Many programming languages supports OOPs principles but our intention here is to learn Java. Hence we talk about the Java and OOPs only.
Java does supports OOPs principles but remember one important point here is Java is not completely Object oriented programming language due to presence of primitive data types.
In later chapters we will discuss more about the Primitive Data types for now we will move on to the OOPs concepts.
- Inheritance
- Polymorphism
- Abstraction
- Encapsulation
- Class and Objects