0% found this document useful (0 votes)
8 views

Introduction

The document introduces Object-Oriented Programming (OOP) as a methodology for designing programs using classes and objects, simplifying software development and maintenance. It explains key concepts such as classes as blueprints for objects, and objects as instances of classes that bundle data and behavior. An exercise is provided to illustrate the application of OOP in managing student information in a university setting.

Uploaded by

abdullahmostakim
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Introduction

The document introduces Object-Oriented Programming (OOP) as a methodology for designing programs using classes and objects, simplifying software development and maintenance. It explains key concepts such as classes as blueprints for objects, and objects as instances of classes that bundle data and behavior. An exercise is provided to illustrate the application of OOP in managing student information in a university setting.

Uploaded by

abdullahmostakim
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Introduction

Lecture - 1
Object-Oriented Programming (OOP)
• Instructor:
Abdullah Al Mostakim
• Junior SQA in CodemenBD
• SQA Engineer at Eco-Oasis LTD.
Concept of OOP
• Object oriented is a methodology to design a
program using classes and objects.
• Provides a means of structuring programs so
that properties and behaviors are bundled into
individual objects.
• It make visualization easier because it is closest
to real world scenarios.
• It simplifies software development and
maintenance.
Pillars of OOP
OOP

Blueprint
Template
Design
Class
• A class is the blueprint for the objects created
from that class.
• Each class contains some data
definitions(called fields), together with
methods to manipulate that data.
• A class is a user defined type or category of
objects.

Class Template for making objects


Object
• Object are the basic run time entities in an
object oriented system.
• It is an instance of class.
• Object means a real world entity.
• An object is a bundle of data and behavior.
Example:
Class

Objects
Class & Object

Object 1/ Instance 1 Object 2/ Instance 2


Class Components
• Fields (the data/attributes)
• Behavior (the methods)
Class and Objects
CLASS
Car

- Color
- Brand
- Start()
- Break()

Object -1 Object -2 Object -3


Car 1 Car 2 Car 3
-Red
-Ferrari -Yellow -Green
-Lamborghini -Mustang
-Start()
-Break() -Start() -Start()
-Break() -Break()
Exercise:
• You are asked to design a system to manage all 10,000
students in your university.
• Each student has an ID, Name, his list of courses taken
so far, his grades and so on.
• There will be multiple functions handling multiple tasks.
• One single file would be to cumbersome and when
dealing with an individual student too difficult and
error prone.
• Is there any way to separate each student with his or
her details ?
• https://sourceforge.net/projects/drjava/

You might also like