Unformatted text preview:

Lec 4 OOPs Concept In C Object Oriented Programming Pillars C Tutorial For Beginners In this video i am going to talk about these concepts briefly i just want you to get familiar with these concepts in detail The key to success in any interview specifically in programming interview coding interview is practice practice practice as much as possible The practice page of geeks for geeks is a great resource to practice these coding problems These four are known as the pillars pillars of object oriented programming but we will discuss these six things all these six concepts basically these are six concepts in object oriented program see as the name suggests object oriented so obviously object is the main thing everything revolve about the around the object Class is what it is just a blueprint or a prototype through which we can create objects Each object is having its own data and functions or you can say code and data using code or the functions we can manipulate that data fine The code and functions of each object can interact with each other with the help of message passing and for interacting they do n t need to have the internal knowledge of their data and code Class is just a logical thing it suggests a blueprint a blueprint to create objects and objects are physical thing identify you know you can identify that entity real world entity which is having its own you can say properties and behavior right now first thing we ll discuss inheritance because through this diagram you can get it better In large scale application there is a large code base if you go in the detail of each and every function then it would take you months to read out all the functions and you would never code right so rather than going into the detail just showcase the relevant details only showcase those details hiding the implementation detail that is just abstraction like when you switch on your fan you do n t know what is happening behind there encapsulation is also known as referred as data hiding right so wrapping up of these things data and the functions into a single unit is known as encapsulation or you can say like something like this you can hide this data from the outside world with the help of that wrapper can walk can uh you know eat can do these kind of things but how they do n t know the implementation detail so that is simply obstruction in programming also we can achieve obstruction but how we will discuss later The main reason we have switched from pop to oop is data security and through encapsulation we can achieve that thing data security privacy by keeping the data private The data is private to mechanical department only the faculties or employees of that department can access that data so this will increase the privacy the security of the data In programming we can have two types of polymorphism or we can achieve polymorphism uh by two types overloading and overriding see what overloading means Overloading allows a child class to override a function which is already defined in its parent class right like let us take that example real life example The four pillars of object oriented programming as well as the you can say six concepts of oops right if you have any doubt you can tell me in comment box maybe in the next video we can revise that concept or we i can take another example i can discuss that thing right The next video will see introduction to c plus plus


View Full Document

IIT Delhi COL 100 - Lec 4 C++

Download Lec 4 C++
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lec 4 C++ and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lec 4 C++ 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?