Categories
Ebooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Computer in the office
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Multimedia trainings
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Reports, analyses
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
- Architektura i wnętrza
- Health and Safety
- Biznes i Ekonomia
- Home and garden
- E-business
- Ekonomia i finanse
- Finances
- Personal finance
- Business
- Photography
- Computer science
- HR & Payroll
- For women
- Computers, Excel
- Accounts
- Culture and literature
- Scientific and academic
- Environmental protection
- Opinion-forming
- Education
- Taxes
- Travelling
- Psychology
- Religion
- Agriculture
- Book and press market
- Transport and Spedition
- Healthand beauty
-
History
-
Computer science
- Office applications
- Data bases
- Bioinformatics
- IT business
- CAD/CAM
- Digital Lifestyle
- DTP
- Electronics
- Digital photography
- Computer graphics
- Games
- Hacking
- Hardware
- IT w ekonomii
- Scientific software package
- School textbooks
- Computer basics
- Programming
- Mobile programming
- Internet servers
- Computer networks
- Start-up
- Operational systems
- Artificial intelligence
- Technology for children
- Webmastering
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Narrative poetry
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
School textbooks
-
Popular science and academic
- Archeology
- Bibliotekoznawstwo
- Cinema studies
- Philology
- Polish philology
- Philosophy
- Finanse i bankowość
- Geography
- Economy
- Trade. World economy
- History and archeology
- History of art and architecture
- Cultural studies
- Linguistics
- Literary studies
- Logistics
- Maths
- Medicine
- Humanities
- Pedagogy
- Educational aids
- Popular science
- Other
- Psychology
- Sociology
- Theatre studies
- Theology
- Economic theories and teachings
- Transport i spedycja
- Physical education
- Zarządzanie i marketing
-
Guides
-
Game guides
-
Professional and specialist guides
-
Law
- Health and Safety
- History
- Road Code. Driving license
- Law studies
- Healthcare
- General. Compendium of knowledge
- Academic textbooks
- Other
- Construction and local law
- Civil law
- Financial law
- Economic law
- Economic and trade law
- Criminal law
- Criminal law. Criminal offenses. Criminology
- International law
- International law
- Health care law
- Educational law
- Tax law
- Labor and social security law
- Public, constitutional and administrative law
- Family and Guardianship Code
- agricultural law
- Social law, labour law
- European Union law
- Industry
- Agricultural and environmental
- Dictionaries and encyclopedia
- Public procurement
- Management
-
Tourist guides and travel
- Africa
- Albums
- Southern America
- North and Central America
- Australia, New Zealand, Oceania
- Austria
- Asia
- Balkans
- Middle East
- Bulgary
- China
- Croatia
- The Czech Republic
- Denmark
- Egipt
- Estonia
- Europe
- France
- Mountains
- Greece
- Spain
- Holand
- Iceland
- Lithuania
- Latvia
- Mapy, Plany miast, Atlasy
- Mini travel guides
- Germany
- Norway
- Active travelling
- Poland
- Portugal
- Other
- Przewodniki po hotelach i restauracjach
- Russia
- Romania
- Slovakia
- Slovenia
- Switzerland
- Sweden
- World
- Turkey
- Ukraine
- Hungary
- Great Britain
- Italy
-
Psychology
- Philosophy of life
- Kompetencje psychospołeczne
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Audiobooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
-
History
-
Computer science
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
Popular science and academic
-
Guides
-
Professional and specialist guides
-
Law
-
Tourist guides and travel
-
Psychology
- Philosophy of life
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Videocourses
-
Data bases
-
Big Data
-
Biznes, ekonomia i marketing
-
Cybersecurity
-
Data Science
-
DevOps
-
For children
-
Electronics
-
Graphics/Video/CAX
-
Games
-
Microsoft Office
-
Development tools
-
Programming
-
Personal growth
-
Computer networks
-
Operational systems
-
Software testing
-
Mobile devices
-
UX/UI
-
Web development
-
Management
Podcasts
- Ebooks
- Programming
- Programming techniques
- OBJECT-ORIENTED PROGRAMMING
E-book details

Object-Oriented Programming is a textbook that will enable any reader, regardless of their level, to understand the basic principles of structured and object-oriented programming. A beginner will have the opportunity to learn almost from scratch, and an advanced programmer will be able to consolidate, practice, and significantly expand his or her knowledge.
In the book, the author has gathered a large amount of basic programming concepts, explaining the concept of data, its types and more complex structures, i.e. collections, along with the ways of referring to them through names and pointers. He discussed conditional statements, iteration, functions, objects and classes, as well as inheritance, polymorphism and access rules. An additional advantage of the content discussed is the questions and exercises with answers and the source codes of all programs with the possibility of downloading them directly to the computer.
The author of the book is Aleksander Bies, a teacher of programming, a graduate of Computer Science and Applied Computer Science at the Faculty of Science and Technology of the University of Silesia, a doctoral candidate in the field of artificial intelligence methods in complex systems. He is the co-author of a machine learning model that won 2nd place in the international Orange Datahack with Energy competition.
Translations: Joanna Margowniczny an English teacher at Primary School No. 13 in Jaworzno and ZDZ in Sosnowiec, International IT ESSENTIALS instructor, OKE examiner.
TABLE OF CONTENTS
1 BEFORE YOU WRITE YOUR FIRST CODE... ................................................. 9
1.1 INTRODUCTION ...................................................................................................... 9
1.2 PROGRAMMING LANGUAGES AND THEIR DIVISION ......................................................... 9
1.2.1 Test yoursel! ............................................................................................ 13
1.3 DEVELOPMENT ENVIRONMENTS .............................................................................. 14
1.3.1 Rider ........................................................................................................ 15
1.3.2 Visual Studio ............................................................................................ 16
1.4 RIDER INSTALLATION ............................................................................................. 17
1.4.1 System Windows 11 ................................................................................ 17
1.4.2 System MacOS ......................................................................................... 21
1.4.3 System Ubuntu ........................................................................................ 23
1.4.4 Rider Initial configuration and first launch of the Rider environment ..... 25
1.5 MICROSOFT VISUAL STUDIO INSTALLATION ............................................................... 34
1.5.1 System Windows 11 ................................................................................ 34
1.5.2 Initial setup and first launch of Visual Studio .......................................... 37
1.6 C# LANGUAGE ..................................................................................................... 41
2 PROGRAMMING BASICS ........................................................................ 45
2.1 WE ARE WRITING THE FIRST PROGRAMME... .............................................................. 45
2.1.1 Test yourself! ........................................................................................... 47
2.1.2 Practical tasks: ........................................................................................ 49
2.2 BASIC OPERATIONS, COMMETS................................................................................ 49
2.2.1 Test yourself! ........................................................................................... 52
2.2.2 Practical tasks: ........................................................................................ 52
2.3 VARIABLES AND CONSTANTS, BASIC DATA TYPES, TYPE CONVERSION ............................... 53
2.3.1 Test yourself! ........................................................................................... 61
2.3.2 Practical tasks: ........................................................................................ 62
2.4 CONDITIONAL STATEMENTS ................................................................................... 63
2.4.1 If statement ............................................................................................. 66
2.4.2 The statement if … else ........................................................................... 68
2.4.3 Statement if … else if … else .................................................. 70
2.4.4 switch Statement ............................................................................... 73
2.4.5 Test yourself! ........................................................................................... 75
2.4.6 Pactical tasks: .......................................................................................... 76
2.5 LOOPS................................................................................................................ 76
2.5.1 For loop ................................................................................................... 77
2.5.2 A While loop ............................................................................................ 80
2.5.3 Do … while loop ....................................................................................... 85
2.5.4 Break and Continue commands .............................................................. 87
2.5.5 Nested loops ............................................................................................ 92
2.5.6 Test yourself! ........................................................................................... 95
2.5.7 Practical tasks: ........................................................................................ 96
2.6 RANGE OF VARIABLES ............................................................................................ 97
2.6.1 Test yourself! ......................................................................................... 103
2.7 COLLECTIONS .................................................................................................... 103
2.7.1 Arrays (one - dimensional) .................................................................... 104
2.7.2 Multidimensional arrays ....................................................................... 107
2.7.3 Irregular arrays ...................................................................................... 108
2.7.4 Lists ........................................................................................................ 110
2.7.5 Array List ............................................................................................... 113
2.7.6 Dictionaries ........................................................................................... 115
2.7.7 The "for" loop and collections ............................................................... 117
2.7.8 Foreach Loop ......................................................................................... 120
2.7.9 Test yourself! ......................................................................................... 124
2.7.10 Practical tasks: ...................................................................................... 125
3 „CLEAN CODE” ..................................................................................... 129
3.1.1 Test yourself! ......................................................................................... 136
4 FUNCTIONAL PROGRAMMING ............................................................. 141
4.1 WHAT IS A FUNCTION? ........................................................................................ 141
4.2 FURTHER ABOUT THE FUNCTIONS... ....................................................................... 144
4.2.1 Functions that return nothing ............................................................... 145
4.2.2 Functions that return numeric values .................................................... 146
4.2.3 Other types of functions ........................................................................ 150
4.2.4 Test yourself! ......................................................................................... 153
4.2.5 Practical tasks: ...................................................................................... 154
4.3 RECURSION ....................................................................................................... 155
4.3.1 What is recursion? ................................................................................. 155
4.3.2 Pros and cons of recursion..................................................................... 160
4.3.3 Test yourself! ......................................................................................... 161
4.3.4 Practical tasks: ...................................................................................... 162
5 "SYSTEM" NAMESPACE FUNCTIONS SYSTEM.NUMERIC LIBRARY ......... 165
5.1 BUILT-IN AND LIBRARY FUNCTION .......................................................................... 165
5.2 STRING CLASS FUNCTIONS .................................................................................... 166
5.3 FUNCTIONS THAT ALLOW YOU TO OPERATE ON COLLECTIONS ...................................... 177
5.4 MATH FUNCTIONS – MATH CLASS ........................................................................ 192
5.5 ELEMENT OF RANDOMNESS – FUNCTIONS OF THE RANDOM CLASS ............................... 195
5.6 SYSTEM.NUMERICS LIBRARY ................................................................................. 199
5.6.1 Big Integer ............................................................................................. 199
5.6.1 Vector2 .................................................................................................. 202
5.6.2 Vector3 .................................................................................................. 203
5.6.3 Test yourself! ......................................................................................... 205
6 GARBAGE COLLECTOR, POINTERS, STRUCTURES .................................. 209
6.1 GARBAGE COLLECTOR ......................................................................................... 209
6.2 POINTERS ......................................................................................................... 210
6.3 STRUCTURES ..................................................................................................... 214
6.3.1 Test yourself! ......................................................................................... 219
6.3.2 Practical tasks: ...................................................................................... 220
7 OBJECT-ORIENTED PROGRAMMING .................................................... 223
7.1 WHAT IS OBJECT-ORIENTED PROGRAMMING AND WHY IS IT WORTH PROGRAMMING THIS
WAY? 223
7.2 CLASS DEFINITION .............................................................................................. 224
7.3 CONSTRUCTOR AND DESTRUCTOR, CREATING OBJECTS ............................................... 226
7.3.1 Constructor ............................................................................................ 227
7.3.2 Destructor .............................................................................................. 228
7.3.3 Creating Objects .................................................................................... 229
7.4 METHODS......................................................................................................... 230
7.4.1 Calling methods on instances of a class ................................................ 232
7.4.2 Method overloading .............................................................................. 235
7.5 INHERITANCE AND POLYMORPHISM ........................................................................ 237
7.5.1 Inheritance mechanism ......................................................................... 237
7.5.2 Polymorphism ........................................................................................ 239
7.5.3 ToString Method ................................................................................... 246
7.6 ABSTRACT CLASSES AND INTERFACES ...................................................................... 249
7.6.1 What are abstract classes? ................................................................... 249
7.6.2 Interfaces ............................................................................................... 251
7.7 ACCESS MODIFIERS ............................................................................................. 252
7.7.1 Public ..................................................................................................... 253
7.7.2 Private ................................................................................................... 254
7.7.3 Protected ............................................................................................... 254
7.7.4 Internal .................................................................................................. 256
7.8 GET AND SET PROPERTIES AND ACCESSORIES ............................................................ 258
7.8.1 What are properties? Correct class design. ........................................... 258
Encapsulation. ....................................................................................................... 258
7.8.2 How do I use properties? ....................................................................... 260
7.8.3 Test yourself! ......................................................................................... 262
7.8.4 Practical tasks: ...................................................................................... 264
8 DELEGATES AND ANONYMOUS FUNCTIONS ........................................ 269
8.1 A FEW WORDS ABOUT THE DELEGATES ... ................................................................ 269
8.1.1 What are delegates and why are they used? Callback functions. ......... 269
8.1.2 Create delegates ................................................................................... 270
8.1.3 Delegates as callback functions. Generic delegates. ................ 271
8.1.4 Built-in delegates – Func and Action ..................................................... 275
8.2 ANONYMOUS FUNCTIONS AND LAMBDA EXPRESSIONS ............................................... 277
8.2.1 Test yourself! ......................................................................................... 280
8.2.2 Practical tasks: ...................................................................................... 281
9 EXCEPTIONS AND THEIR HANDLING ..................................................... 285
9.1 EXCEPTIONS ...................................................................................................... 285
9.2 EXCEPTION HANDLING –TRY, CATCH, FINALLY BLOCK ........................................ 289
9.2.1 Test yourself! ......................................................................................... 293
9.2.2 Practical tasks: ...................................................................................... 293
10 KEY ANSWERS ..................................................................................... 297
11 BIBLIOGRAPHY .................................................................................... 327
- Title: OBJECT-ORIENTED PROGRAMMING
- Author: Aleksander Bies
- Translation: Joanna Margowniczy
- ISBN: 9788367989312, 9788367989312
- Date of issue: 2025-05-10
- Format: Ebook
- Item ID: e_4gah
- Publisher: ITStart