Object Oriented Programming-Concepts.pptx

KashfUlHuda1 9 views 10 slides Jun 30, 2024
Slide 1
Slide 1 of 10
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

About This Presentation

Object Oriented programming concepts. Classes, objects, methods, functions, variables, data members, polymorphism, inheritance, instances, abstraction. modularity: breaking a big problem into smaller chunks. hierarchy: is-a relationship. generalization.


Slide Content

Object Oriented Programming Concepts By: UPSOL ACADEMY

Outline Object Classes Methods Instances Polymorphism Inheritance Encapsulation Interfaces

Object Object is an instance of the class which has all the properties of its respective class. Methods, data variables

Class A class is a template or blueprint, from objects are created. Objects are used o implement the classes.

Method A method is a set of code which is referred to by name and can be called at any point in a program simply by utilizing the method’s name.

Instances An instance is a specific realization of any object The creation of a realized instance is called instantiation. Each time a program runs, it is an instance of that program.

Inheritance Inheritance is the mechanism that allows us to reuse the attributes and methods of one class in the implementation of another class.

Polymorphism Polymorphism  refers to the ability to process objects differently depending on their data type or class. More specifically, it is the ability to redefine methods for derived classes . Method overloading Method overriding

Encapsulation It describes the idea of bundling data and methods that work on that data within one unit, e.g ., a class in Java . This concept is also often used to hide the internal representation, or state, of an object from the outside

Interfaces It is collection of abstract classes and methods. it is used to achieve abstraction.