SlideShare a Scribd company logo
1 of 10
Download to read offline
© EPractize Labs Software. All rights reserved
MyExamCloud
Overview
Introduction to Object Oriented Programming
In an Object Oriented Programming, Real world entities are considered as objects.
• Objects can have attributes and operations
• Attributes are variables
• Operations are methods
© EPractize Labs Software. All rights reserved
MyExamCloud
Introduction to Object Oriented Programming
Name
Branch Code
Address
Deposit Amount
Withdraw Amount
Transfer Amount
Bank
Account Number
Type
Balance Amount
Account
Name
Address
Accounts
Customer
Real World Example
© EPractize Labs Software. All rights reserved
MyExamCloud
Name
Branch Code
Address
Deposit Amount
Withdraw Amount
Transfer Amount
Bank
Account Number
Type
Balance Amount
Account
Name
Address
Accounts
Customer
Real World Entities = Classes in Object-Oriented Programming
Introduction to Object Oriented Programming
Real World Example
© EPractize Labs Software. All rights reserved
MyExamCloud
Name
Branch Code
Address
Deposit Amount
Withdraw Amount
Transfer Amount
Bank.class
Account Number
Type
Balance Amount
Account.class
Name
Address
Accounts
Customer.Class
Real World Entities = Classes in Object-Oriented Programming
Introduction to Object Oriented Programming
Real World Example
© EPractize Labs Software. All rights reserved
MyExamCloud
What is class?
A class is the blueprint which has attributes (data) and methods from
which individual objects are created.
Name
Branch Code
Address
Deposit Amount
Withdraw Amount
Transfer Amount
Bank.class
Real World Entities = Classes in Object-Oriented Programming
Introduction to Object Oriented Programming
What is a Class?
© EPractize Labs Software. All rights reserved
MyExamCloud
Name
Branch Code
Address
Deposit Amount
Withdraw Amount
Transfer Amount
Bank.class
Real World Entities = Classes in Object-Oriented Programming
} Attributes
} Methods
Name = XYZ Bank
Branch Code = BC213
Address = NY, USA
Bank Object
Introduction to Object Oriented Programming
What is a Class? Example
© EPractize Labs Software. All rights reserved
MyExamCloud
Name
Branch Code
Address
Deposit Amount
Withdraw Amount
Transfer Amount
Bank.class
An object is an instance of a class. For example, XYZ Bank object refers an instance of Bank class.
} Attributes
} Methods
Name = XYZ Bank
Branch Code = BC213
Address = NY, USA
Bank Object
What is an Object?
Introduction to Object Oriented Programming
© EPractize Labs Software. All rights reserved
MyExamCloud
Classes and Objects Real World Examples
Human
Men
Women
Bank
Cycle
Car
Politician
Movie
Company
Footballer
Graham Dean
Joseph
Emma
XYZ Bank
Your cycle at your home
Your car at your home
Barack Obama
Star Wars
Oracle
Cristiano Ronaldo
Class Objects
• Every object belongs to (is an instance of) a class
• An object may have fields, or variables
Example: Name, Address . . .
• The class describes those fields
• An object may have methods
Example: Walk, Speak, Dance . . .
• The class describes those methods
• A class is like a template, or blueprint
Introduction to Object Oriented Programming
© EPractize Labs Software. All rights reserved
MyExamCloud
Program Examples
Introduction to Object Oriented Programming
Assignment: Try creating classes for Account and Customer in Java or Python.
Java Class Python Class
© EPractize Labs Software. All rights reserved
MyExamCloud
Contact MyExamCloud to get free guidance
Introduction to Object Oriented Programming
Logon to MyExamCloud
Contact us to get free guidance related to software programming.
MyExamCloud Java Courses -> https://www.myexamcloud.com/onlineexam/javacertification.courses
MyExamCloud Python Courses -> https://www.myexamcloud.com/onlineexam/python-certification-practice-tests.courses

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

OO Programming in Java and Python

  • 1. © EPractize Labs Software. All rights reserved MyExamCloud Overview Introduction to Object Oriented Programming In an Object Oriented Programming, Real world entities are considered as objects. • Objects can have attributes and operations • Attributes are variables • Operations are methods
  • 2. © EPractize Labs Software. All rights reserved MyExamCloud Introduction to Object Oriented Programming Name Branch Code Address Deposit Amount Withdraw Amount Transfer Amount Bank Account Number Type Balance Amount Account Name Address Accounts Customer Real World Example
  • 3. © EPractize Labs Software. All rights reserved MyExamCloud Name Branch Code Address Deposit Amount Withdraw Amount Transfer Amount Bank Account Number Type Balance Amount Account Name Address Accounts Customer Real World Entities = Classes in Object-Oriented Programming Introduction to Object Oriented Programming Real World Example
  • 4. © EPractize Labs Software. All rights reserved MyExamCloud Name Branch Code Address Deposit Amount Withdraw Amount Transfer Amount Bank.class Account Number Type Balance Amount Account.class Name Address Accounts Customer.Class Real World Entities = Classes in Object-Oriented Programming Introduction to Object Oriented Programming Real World Example
  • 5. © EPractize Labs Software. All rights reserved MyExamCloud What is class? A class is the blueprint which has attributes (data) and methods from which individual objects are created. Name Branch Code Address Deposit Amount Withdraw Amount Transfer Amount Bank.class Real World Entities = Classes in Object-Oriented Programming Introduction to Object Oriented Programming What is a Class?
  • 6. © EPractize Labs Software. All rights reserved MyExamCloud Name Branch Code Address Deposit Amount Withdraw Amount Transfer Amount Bank.class Real World Entities = Classes in Object-Oriented Programming } Attributes } Methods Name = XYZ Bank Branch Code = BC213 Address = NY, USA Bank Object Introduction to Object Oriented Programming What is a Class? Example
  • 7. © EPractize Labs Software. All rights reserved MyExamCloud Name Branch Code Address Deposit Amount Withdraw Amount Transfer Amount Bank.class An object is an instance of a class. For example, XYZ Bank object refers an instance of Bank class. } Attributes } Methods Name = XYZ Bank Branch Code = BC213 Address = NY, USA Bank Object What is an Object? Introduction to Object Oriented Programming
  • 8. © EPractize Labs Software. All rights reserved MyExamCloud Classes and Objects Real World Examples Human Men Women Bank Cycle Car Politician Movie Company Footballer Graham Dean Joseph Emma XYZ Bank Your cycle at your home Your car at your home Barack Obama Star Wars Oracle Cristiano Ronaldo Class Objects • Every object belongs to (is an instance of) a class • An object may have fields, or variables Example: Name, Address . . . • The class describes those fields • An object may have methods Example: Walk, Speak, Dance . . . • The class describes those methods • A class is like a template, or blueprint Introduction to Object Oriented Programming
  • 9. © EPractize Labs Software. All rights reserved MyExamCloud Program Examples Introduction to Object Oriented Programming Assignment: Try creating classes for Account and Customer in Java or Python. Java Class Python Class
  • 10. © EPractize Labs Software. All rights reserved MyExamCloud Contact MyExamCloud to get free guidance Introduction to Object Oriented Programming Logon to MyExamCloud Contact us to get free guidance related to software programming. MyExamCloud Java Courses -> https://www.myexamcloud.com/onlineexam/javacertification.courses MyExamCloud Python Courses -> https://www.myexamcloud.com/onlineexam/python-certification-practice-tests.courses