Skip to main content

Object Oriented Programming - Notes

               

Object-Oriented Programming (OOPs) Concept in Java

OOP: Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism etc in programming. The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function.

Topics: -
  • Class
  • Object
  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism
Class: 
        The object is a real-world entity.
obj consist of properties and tasks performed

Ex.
        Entity ->human
                    |
                name ,color,height
task ->  walk(), read() , write()
Class :
                 class is the Blueprint of objects follows.
                    without a class, the object is not there.
Ex:-
Student
Properties(variable):-
                                 -> Name
                                 -> RollNo
                                 -> DOJ
Tasks :-
                read();
                write();
                play();









                                                   

Comments