80 likes | 90 Views
This presentation on OOPs in C will help you learn the basic concepts of object-oriented programming like inheritance, abstraction, polymorphism, etc. We will understand the difference between procedural programming and object-oriented programming with hands-on examples.<br><br>1. Why OOPs<br>2.u200b Object Oriented Programming<br>3.u200b OOPs vs Procedural Programming<br>4.u200b Basic Concepts of OOPs<br>5.u200b Benefits of OOP<br><br>Learn more at : https://www.simplilearn.com/pgp-full-stack-web-development-certification-training-course?utm_campaign=C &utm_medium=Description&utm_source=Slideshare
E N D
What’s in it for you ? Why OOPs ? Object Oriented Programming OOPs vs Procedural programming Basic concepts of OOPs Benefits of OOP
Why OOPs ? There were some limitations in earlier approaches to programming With oops it is easy to maintain and modify the existing code It increases the reusability as well as the simplicity of the program
Object Oriented programming • Object-oriented programming is a programming model in which we write programs using classes and objects utilising features of oops • Some basic concepts of OOPs • Classes • Objects • Data abstraction and encapsulation • Inheritance • Polymorphism • Dynamic binding • Message passing
OOPs vs Procedural programming OOP POP • It follows the bottom-up approach • Overloading is possible • They have access specifiers • It is more secure • It follows the top-down approach • Overloading is not possible • No access specifiers • It is less secure
Basic concepts of OOPs • Class • Abstraction Hiding internal details and showing functionality to user Collection of objects is called class Anything that exists physically in the real world Objects communicate with each other by sending and receiving information Which code will execute is unknown until the program runs It is the ability to exist in more than one form Binding of code and data together into a single unit Properties of one class can be inherited into others Encapsulation Object • Inheritance • Dynamic binding Polymorphism Message passing
Benefits of OOP Written code can easily be reused using objects and Inheritance Due to the ability to hide certain parts of the program, it helps to build a secure system It is much easier to modify and maintain the program