Object Oriented Programming Concepts for beginners

2,345 views 14 slides Feb 18, 2020
Slide 1
Slide 1 of 14
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
Slide 14
14

About This Presentation

Basic introduction to Object Oriented Programming Concepts
Contains set of basic information


Slide Content

Slide 1 Introduction to Object Oriented Programming Vibhawa Nirmal Wijerathna

What is Object Oriented Programming ? Slide 5 Object oriented Programming is a programming paradigm based on the concept of “Objects”. The main aim of object-oriented programming is to implement real-world entities, for example, object, classes, abstraction, inheritance, polymorphism, etc.

Why Object-Oriented Programming ? Easy for troubleshooting Cades can be able to reuse Flexible Low cost of development Increase Maintainability Slide 5

Why not Object-Oriented Programming ? Slide 5 Complex with Planning Programmer should be skilled with technology Flexible

What is a Class? Slide 5 A Class is group of objects which have common features Also class is a "blueprint" for creating objects.

What is an Object ? Slide 5 An entity that has state and behavior Example: Chair, Bike , Car Object has three characteristics State Behavior Identity Example: Pen is an object. Its name is Reynolds; color is white; known as its state. It is used to write; writing is its behavior.

Class and Object Slide 5 Dog (class) Dog 1 (Object) Dog 2 (Object) Attributes And Behaviors

Object-Oriented Programming Concepts Slide 5 Inheritance Polymorphism Abstraction Encapsulation

Inheritance Slide 5 Inheritance is possible to inherit attributes and the methods from one class to another class.  There are two types of classes Super Class – the class being inherited from Sub Class - the class that inherits from another class Types of Inheritance Single Multiple Multi- Level Hierarchical

Inheritance Cont. Slide 5 Single Inheritance Multi Level Inheritance Hybrid Inheritance Multiple Inheritance

Encapsulation Slide 5 Principle of wrapping variables and codes together as a single unit. It is a mechanism that binds the code and the variables together. Encapsulation supports to Hide Data Testing easily Reusability Increased Flexibility

Abstraction Slide 5 Abstraction is the process of hiding certain details and showing only essential information to the user. Also defined as the process of identifying only the required characteristics of an object ignoring the irrelevant details.

Polymorphism Slide 5 Polymorphism means "many forms”. Polymorphism allows us to perform a single action in different ways.

Slide 1 Thank You Vibhawa Nirmal Wijerathna