1. OOPs Concept in Java with Examples | 4 Pillars of Object Oriented Programming (OOPs)

preview_player
Показать описание
➡️ Notes link: Shared in the Member Community Post (If you are Member of this channel, then pls check the Member community post, i have shared the Notes link there)

➡️ Join this channel to get access to member only perks:

There are 4 pillars of OOPs:
- Inheritance,
- Polymorphism,
- Abstraction,
- Encapsulation.

i have all 4 in detailed with different examples. And interview questions which can be asked on top of it.

#java #objectorientedprogramming
Рекомендации по теме
Комментарии
Автор

00:02 Overview of Object Oriented Programming (OOPs) in Java
02:21 Real world entities have behavior (functionality) and properties
07:09 Objects in OOP have properties and behaviors
09:38 Class is the blueprint/template for creating objects.
15:00 Creating objects using the 'new' keyword in Java
17:31 First pillar of OOPs: Data Abstraction
21:49 Achieving data abstraction through interface and abstraction.
24:07 Data abstraction is essential for user interface simplicity and confidentiality.
28:37 Implement data hiding for simplified code
30:47 Data abstraction simplifies client code
35:30 Encapsulation in OOPs
37:49 Encapsulation bundles data and code into a single unit in Java OOPs
42:15 Object-oriented programming emphasizes the need for information exchange between classes.
44:39 Classes have control over their own properties and methods.
49:08 In OOPs, data can be accessed only through methods, not directly.
51:11 Data encapsulation is like keeping data inside a capsule for protection.
55:41 Understanding the concept of inheritance in Java
58:09 Car type and object creation in OOPs
1:03:25 Inheritance and method ambiguity in object-oriented programming.
1:05:53 Diamond problem in OOPs
1:10:23 Polymorphism in Java
1:12:33 Method overloading is known as static polymorphism or compile time polymorphism.
1:17:19 Method overloading based on return type is not allowed
1:19:25 Overloading vs. Overriding in Java
1:23:52 Method Overloading vs Method Overriding in OOPs
1:26:13 Inheritance and has a relationship in OOPs concept
1:30:48 Understanding 'has a' relationship in OOPs
1:33:16 Objects in OOP are strongly related and impact each other

parthh
Автор

A obj = new B(); - Polymorphic Reference

It's important to note that even though the object is of type B, you are referencing it using a variable of type A. This means that you can only access the methods and fields that are defined in class A through the variable obj. If class A has methods that are overridden in class B, the version of the method in class B will be called when you invoke the method through the obj reference.
If you try to access methods or fields specific to class B using the obj reference, you will encounter a compilation error unless those methods or fields are also present in class A (or its superclasses/interfaces).
Example :-
If class A has methodA( ), methodxyz( ) and class B has method B( ), methodxyz()
& class B inherits class A.
Then, => A obj = new B();
obj. methodA( ) will invoke methodA( ) of class A
obj. methodB( ) will result in compilation error
obj. methodxyz( ) will invoke methodxyz( ) of class B ( methodxyz() is overriden in class B )

girishanker
Автор

Wish could get it before, after completing engineering... Got everything

sweetygangane
Автор

What is your view on kotlin ? You can completely write anything just using functions and achieve same functionality as class based paradigm.

parthasarathimondal
Автор

Awesome explanations...so simplified. Thanks a lot ☺️

GauravKumar-byyt
Автор

Dear @ConceptandCoding Where can i download the notes for this video

xamguide
Автор

nice I got a nice revision after a long one year

goyaldeekshant
Автор

Can you make video on functional programming and async and reactive programming

indrajeetjyoti
Автор

can we pls get the slide here as well ?Thanks

afsanVlog
Автор

Hi Shreyansh, have you shared this slide somewhere?

sagarsingh-wbou
Автор

Do these videos cover whole java core. Like in this video concepts are explained in brief and there is no other video of java oops in the playlist

shashankbhardwaj
Автор

when you upload the springboot and microservices video?

krupalibhagwat
Автор

Bro nice one, but if possible please make this video like the one, you explained memory management & Garbage collection without PPTs

amvasoft
Автор

Hi, Plz share the slides, as it will be very helpful for revision or remember the topics

souravpatra
Автор

bhai kesse log ho sab bande ne itna sahi padaya aur comments mai kisi ne admire phi nni kıya bss gyan de rahe. h

padlebhai
Автор

I am still confused, that if we can get and set values of data in encapsulation, then what does it mean that it provide security ?
please someone reply

CodeWithMeee
Автор

Great Content. Also A Small Request From My Side. Could You Please Also Share and Design Complex MCQs Which Revolve Around These Topics Which Help in Strengthen our concepts

nandhanvarma
Автор

@sheyansh
In polymorphism, can we change access modifier and exception if any in case of overriding ?

kyhugji
Автор

Hi Shrayansh, at 25:17 what does this user mean, is it like a client (any other application) that uses our exposed interface methods ?

letscodewithshivam
Автор

Hi Shrayansh, have u made all the videos public or there are more vidoes in these playlist? Do i need to join to access the complete playlist

adityaagarwal