Features Of OOPS and characteristics.pptx

44 views 13 slides Feb 09, 2024
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

Oops


Slide Content

Features of OOP in C++ An overview of key object-oriented programming concepts in C++ Submitted to : Ms. Shalinee Pareek Submitted by : Gulshan Kumar (MUR2301513)

Introduction to OOP OOP stands for Object-Oriented Programming OOP models real-world entities as objects Objects contain data (attributes) and functions (methods) C++ fully supports OOP since C++11 standard

Classes and Objects A class is user defined blueprint or prototype from Objects are called instance of a class . Class represents set of properties and method. Objects can store state and exhibit behavior . which objects are created.

Encapsulation Binding data and functions into a single unit is encapsulation Class attributes can be declared private Private attributes can only be accessed via public member functions Prevents direct modification of object state

Abstraction Hiding internal implementation details Showing only essential features to user Achieved through abstract classes and interfaces Provides reusability

Inheritance Inheritance allows a derived class to acquire attributes and methods of a base class Provides reusability of code Supported by public, protected and private inheritance Can be single, multilevel or multiple inheritance

Polymorphism Having many forms - one name, multiple implementations achieved through function overloading and overriding Compile-time polymorphism with function overloading Runtime polymorphism with virtual functions

Summary OOP makes code reusable and modular Classes, objects, inheritance and polymorphism are key concepts Abstractions like abstract classes hide details C++ fully supports OOP since C++11 standard

YOU THANK
Tags