๐ŸŽ‰ Special Offer !    Code: GET300OFF    Flat โ‚น300 OFF on every Java Course
Grab Deal ๐Ÿš€

Object Oriented Programming in Java  


What is Programming Paradigm ?
  • A programming paradigm is a way or style of programming based on certain principles and techniques.
  • It defines how code is written, structured, and executed.
  • Some main programming paradigms are:
    Paradigm Description Languages
    Procedural Step-by-step execution using functions and procedures. C, Pascal, Fortran
    Object-Oriented (OOP) Uses objects and classes to structure code for reusability. Java, C++, Python, C#
    Functional Focuses on pure functions, immutability, and avoiding state changes. Haskell, Lisp, Scala, JavaScript (functional features)
    Declarative Describes what to do rather than how to do it. SQL, Prolog, HTML
What is OOP's ?
  • OOPS (Object-Oriented Programming System)
  • OOPs in Java is a programming paradigm or approach that organizes code using objects and classes to improve reusability, modularity, and maintainability
  • 6 main pillers of OOP's are :-
    • Class - A blueprint for creating objects (e.g., Car, Person).
    • Object - An instance of a class (e.g., myCar, john).
    • Inheritance - Allowing a class to inherit properties from another class.
    • Polymorphism - Having multiple methods with the same name but different behavior (method overloading/overriding).
    • Abstraction - Hiding complex details and showing only the essential features.
    • Encapsulation - Hiding data using private variables and public methods.