舉報

會員
Hands-On Object:Oriented Programming with C#
Raihan Taher 著
更新時間:2021-07-02 12:45:28
開會員,本書免費讀 >
Object-orientedprogramming(OOP)isaprogrammingparadigmorganizedaroundobjectsratherthanactions,anddataratherthanlogic.WiththelatestreleaseofC#,youcanlookforwardtonewadditionsthatimproveobject-orientedprogramming.ThisbookwillgetyouuptospeedwithOOPinC#inanengagingandinteractiveway.ThebookstartsoffbyintroducingyoutoC#languageessentialsandexplainingOOPconceptsthroughsimpleprograms.Youwillthengoontolearnhowtouseclasses,interfacesmandpropertiestowritepureOOPcodeinyourapplications.YouwillbroadenyourunderstandingofOOPfurtherasyoudelveintosomeoftheadvancedfeaturesofthelanguage,suchasusingevents,delegates,andgenerics.Next,youwilllearnthesecretsofwritinggoodcodebyfollowingdesignpatternsanddesignprinciples.You'llalsounderstandproblemstatementswiththeirsolutionsandlearnhowtoworkwithdatabaseswiththehelpofADO.NET.Furtheron,you'lldiscoverachapterdedicatedtotheGitversioncontrolsystem.Asyouapproachtheconclusion,you'llbeabletoworkthroughOOP-specificinterviewquestionsandunderstandhowtotacklethem.Bytheendofthisbook,youwillhaveagoodunderstandingofOOPwithC#andbeabletotakeyourskillstothenextlevel.
最新章節
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- Summary
- Building the habit of reading
- Things to learn next
- Keep practicing
品牌:中圖公司
上架時間:2021-07-02 12:23:26
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Leave a review - let other readers know what you think 更新時間:2021-07-02 12:45:28
- Other Books You May Enjoy
- Summary
- Building the habit of reading
- Things to learn next
- Keep practicing
- Improving your communication skills
- Interview and career tips
- What is the dependency inversion principle?
- What is the interface segregation principle?
- What is the Liskov substitution principle?
- What is the Open/Closed principle?
- What is the single responsibility principle?
- What are design principles?
- What do you understand by value types and reference types in C#.NET?
- What is a virtual method in C#?
- What is managed and unmanaged code?
- What is an extension method in C# and how do we use it?
- What are the differences between a struct and a class?
- What is boxing and unboxing?
- What are access modifiers?
- What is the difference between method-overloading and method-overriding?
- What are the differences between interfaces and abstract classes?
- What is a partial class?
- What is a sealed class?
- What is an abstract class?
- What is an interface?
- What is polymorphism?
- What is abstraction?
- What is encapsulation?
- What is inheritance?
- What are the fundamental principles of object-oriented programming?
- Interview questions
- Prepare Yourself - Interviews and the Future
- Summary
- Merging in Git
- Deleting a branch
- Changing branches
- Viewing available branches
- Creating a branch
- Branching in Git
- Git fetch
- Git pull
- Git push
- Git remote
- Git log
- Git commit
- Git add
- Git status
- Git clone
- Git init
- Git config
- The basics of Git
- Installing Git on Windows
- Committed
- Staged
- Modified
- How Git works
- What is version control?
- Git - The Version Control System
- Summary
- The MVC pattern
- The strategy pattern
- The observer pattern
- The command pattern
- Behavioral design patterns
- The proxy pattern
- The facade pattern
- The decorator pattern
- The adapter pattern
- Structural design patterns
- The singleton pattern
- The prototype pattern
- The factory method pattern
- The builder pattern
- The abstract factory pattern
- Creational design patterns
- The dependency inversion principle
- The interface segregation principle
- The Liskov substitution principle
- The open-closed principle
- The single responsibility principle
- Design principles
- Understanding Design Patterns and Principles
- Summary
- Target-typed new expressions
- Switch expressions
- Default implementation of interface members
- Ranges and indices
- Async streams
- Nullable reference types
- Environment Setup
- New Features in C# 8
- Summary
- Durable
- Isolated
- Consistent
- Atomic
- Transactions in SQL
- Using the Entity Framework
- The database-first approach
- The code-first approach
- Navigation properties
- Scalar properties
- Different types of Entity properties
- What is an entity in the Entity Framework?
- Working with the Entity Framework
- Working with stored procedures
- DataAdapters
- DataReaders
- Working with DataReaders and DataAdapters
- The Oracle database
- SQL Server
- Connecting to various databases
- DataAdapter
- The DataReader object
- The Command object
- Connection objects
- Data providers
- The fundamentals of ADO.NET
- Exploring ADO.NET with Examples
- Summary
- Extract Method
- Encapsulate Field
- Changing the method signature
- Rename
- Refactoring and code-optimization techniques
- Git in Visual Studio
- Watch window
- Call Stack Trace
- Breakpoint
- Breakpoints Call Stack Trace and Watch
- Python debugger window
- Immediate window
- Diagnostic Tools
- Output
- Exception Settings
- Breakpoints window
- Debugging windows
- Output window
- Solution Explorer
- Editor window
- Visual Studio Editor and different windows
- Visual Studio project types and templates
- Visual Studio and Associated Tools
- Summary
- An example of a sequence diagram
- A note
- A duration message
- A destroy message
- A create message
- A recursive message
- A self message
- A return message
- A call message
- An activation
- A lifeline
- An actor
- A sequence diagram
- An example of a use case diagram
- The system boundaries
- The communication link
- The use case
- The actor
- Use case diagrams
- An example of a class diagram
- Dependency
- Composition
- Aggregation
- Association
- Inheritance
- Class diagrams
- Different UML diagrams
- The importance of design diagrams
- Modeling and Designing Software
- Summary
- Contravariance
- Covariance
- Covariance and contravariance in generics
- Type-inferencing
- Generic methods
- Multiple constraints
- Reference type and value type constraints
- Interface constraints
- Base class constraints
- Different constraints of generics
- Why do we need generics?
- What are generics?
- Generics in C#
- Summary
- Event guidelines from .NET
- Multicasting events
- Events
- Covariance and contravariance
- Multicasting
- Using the static and instance methods as delegates
- Method group conversion
- How to create and use delegates
- What is a delegate?
- Events and Delegates
- Summary
- Exception handling best practices
- The exception filter
- User-defined exceptions
- Some common exception classes
- Exception class
- What does the finally block do?
- Using the throw keyword
- Multiple catch blocks
- What happens if you don't handle exceptions?
- Try and catch
- Basics of exception handling
- Exception handling in C# programming
- Why we need exception handling in programming
- Exception Handling
- Summary
- Inheritance
- Composition
- Aggregation
- Association
- Dependency
- Case study
- Different types of object collaboration in C#
- Examples of object collaboration
- Object Collaboration
- Summary
- Protected internal
- Protected
- Internal
- Private
- Public
- Access specifiers for classes
- Properties
- Tuples
- The sealed class
- The partial class
- The abstract class
- Interfaces
- Implementation of OOP in C#
- Summary
- Polymorphism
- Abstraction
- Encapsulation
- Inheritance
- Characteristics of OOP
- Constructor of a class
- Creating a method
- Methods in a class
- Variables in C#
- How to create objects
- Objects in OOP
- Writing a simple class
- The general form of a class
- Classes in OOP
- Hello OOP - Classes and Objects
- Summary
- Debugging through code
- How to debug
- Writing your first program in Visual Studio
- Search option in IDE
- The Command and Immediate windows
- Output window
- Main workspace area
- Solution Explorer
- New Project
- Introduction to the Visual Studio IDE
- Visual Studio Code
- Visual Studio Enterprise
- Visual Studio Professional
- Visual Studio Community
- Types of Visual Studio
- Evolution of Visual Studio
- Visual Studio as an editor
- Writing your first C# program in a console application
- Continue
- Break
- Contextual – break and continue statements
- The foreach construct
- The for construct
- The do-while construct
- The while construct
- Programming syntax – loops
- goto statements
- Switch-case construct
- If-else construct
- Programming syntax – conditions
- String
- Character
- Real
- Integer
- Boolean
- Literals
- Nullable types
- Data types
- Fundamentals and syntax of C# language
- Just-in-time compiler
- .NET framework class libraries
- Common Type System
- Common Language Runtime
- Architecture of .NET
- C# 8 and beyond
- Exception filters
- Compiler as a service
- Async/await
- Dynamics
- LINQ
- Generics
- Managed code
- Evolution of C#
- Overview of C# as a Language
- Reviews
- Get in touch
- Conventions used
- Download the color images
- Download the example code files
- To get the most out of this book
- What this book covers
- Who this book is for
- Preface
- Packt is searching for authors like you
- About the reviewer
- About the author
- Contributors
- Packt.com
- Why subscribe?
- About Packt
- Hands-On Object-Oriented Programming with C#
- Copyright and Credits
- Title Page
- coverpage
- coverpage
- Title Page
- Copyright and Credits
- Hands-On Object-Oriented Programming with C#
- About Packt
- Why subscribe?
- Packt.com
- Contributors
- About the author
- About the reviewer
- Packt is searching for authors like you
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Download the color images
- Conventions used
- Get in touch
- Reviews
- Overview of C# as a Language
- Evolution of C#
- Managed code
- Generics
- LINQ
- Dynamics
- Async/await
- Compiler as a service
- Exception filters
- C# 8 and beyond
- Architecture of .NET
- Common Language Runtime
- Common Type System
- .NET framework class libraries
- Just-in-time compiler
- Fundamentals and syntax of C# language
- Data types
- Nullable types
- Literals
- Boolean
- Integer
- Real
- Character
- String
- Programming syntax – conditions
- If-else construct
- Switch-case construct
- goto statements
- Programming syntax – loops
- The while construct
- The do-while construct
- The for construct
- The foreach construct
- Contextual – break and continue statements
- Break
- Continue
- Writing your first C# program in a console application
- Visual Studio as an editor
- Evolution of Visual Studio
- Types of Visual Studio
- Visual Studio Community
- Visual Studio Professional
- Visual Studio Enterprise
- Visual Studio Code
- Introduction to the Visual Studio IDE
- New Project
- Solution Explorer
- Main workspace area
- Output window
- The Command and Immediate windows
- Search option in IDE
- Writing your first program in Visual Studio
- How to debug
- Debugging through code
- Summary
- Hello OOP - Classes and Objects
- Classes in OOP
- The general form of a class
- Writing a simple class
- Objects in OOP
- How to create objects
- Variables in C#
- Methods in a class
- Creating a method
- Constructor of a class
- Characteristics of OOP
- Inheritance
- Encapsulation
- Abstraction
- Polymorphism
- Summary
- Implementation of OOP in C#
- Interfaces
- The abstract class
- The partial class
- The sealed class
- Tuples
- Properties
- Access specifiers for classes
- Public
- Private
- Internal
- Protected
- Protected internal
- Summary
- Object Collaboration
- Examples of object collaboration
- Different types of object collaboration in C#
- Case study
- Dependency
- Association
- Aggregation
- Composition
- Inheritance
- Summary
- Exception Handling
- Why we need exception handling in programming
- Exception handling in C# programming
- Basics of exception handling
- Try and catch
- What happens if you don't handle exceptions?
- Multiple catch blocks
- Using the throw keyword
- What does the finally block do?
- Exception class
- Some common exception classes
- User-defined exceptions
- The exception filter
- Exception handling best practices
- Summary
- Events and Delegates
- What is a delegate?
- How to create and use delegates
- Method group conversion
- Using the static and instance methods as delegates
- Multicasting
- Covariance and contravariance
- Events
- Multicasting events
- Event guidelines from .NET
- Summary
- Generics in C#
- What are generics?
- Why do we need generics?
- Different constraints of generics
- Base class constraints
- Interface constraints
- Reference type and value type constraints
- Multiple constraints
- Generic methods
- Type-inferencing
- Covariance and contravariance in generics
- Covariance
- Contravariance
- Summary
- Modeling and Designing Software
- The importance of design diagrams
- Different UML diagrams
- Class diagrams
- Inheritance
- Association
- Aggregation
- Composition
- Dependency
- An example of a class diagram
- Use case diagrams
- The actor
- The use case
- The communication link
- The system boundaries
- An example of a use case diagram
- A sequence diagram
- An actor
- A lifeline
- An activation
- A call message
- A return message
- A self message
- A recursive message
- A create message
- A destroy message
- A duration message
- A note
- An example of a sequence diagram
- Summary
- Visual Studio and Associated Tools
- Visual Studio project types and templates
- Visual Studio Editor and different windows
- Editor window
- Solution Explorer
- Output window
- Debugging windows
- Breakpoints window
- Exception Settings
- Output
- Diagnostic Tools
- Immediate window
- Python debugger window
- Breakpoints Call Stack Trace and Watch
- Breakpoint
- Call Stack Trace
- Watch window
- Git in Visual Studio
- Refactoring and code-optimization techniques
- Rename
- Changing the method signature
- Encapsulate Field
- Extract Method
- Summary
- Exploring ADO.NET with Examples
- The fundamentals of ADO.NET
- Data providers
- Connection objects
- The Command object
- The DataReader object
- DataAdapter
- Connecting to various databases
- SQL Server
- The Oracle database
- Working with DataReaders and DataAdapters
- DataReaders
- DataAdapters
- Working with stored procedures
- Working with the Entity Framework
- What is an entity in the Entity Framework?
- Different types of Entity properties
- Scalar properties
- Navigation properties
- The code-first approach
- The database-first approach
- Using the Entity Framework
- Transactions in SQL
- Atomic
- Consistent
- Isolated
- Durable
- Summary
- New Features in C# 8
- Environment Setup
- Nullable reference types
- Async streams
- Ranges and indices
- Default implementation of interface members
- Switch expressions
- Target-typed new expressions
- Summary
- Understanding Design Patterns and Principles
- Design principles
- The single responsibility principle
- The open-closed principle
- The Liskov substitution principle
- The interface segregation principle
- The dependency inversion principle
- Creational design patterns
- The abstract factory pattern
- The builder pattern
- The factory method pattern
- The prototype pattern
- The singleton pattern
- Structural design patterns
- The adapter pattern
- The decorator pattern
- The facade pattern
- The proxy pattern
- Behavioral design patterns
- The command pattern
- The observer pattern
- The strategy pattern
- The MVC pattern
- Summary
- Git - The Version Control System
- What is version control?
- How Git works
- Modified
- Staged
- Committed
- Installing Git on Windows
- The basics of Git
- Git config
- Git init
- Git clone
- Git status
- Git add
- Git commit
- Git log
- Git remote
- Git push
- Git pull
- Git fetch
- Branching in Git
- Creating a branch
- Viewing available branches
- Changing branches
- Deleting a branch
- Merging in Git
- Summary
- Prepare Yourself - Interviews and the Future
- Interview questions
- What are the fundamental principles of object-oriented programming?
- What is inheritance?
- What is encapsulation?
- What is abstraction?
- What is polymorphism?
- What is an interface?
- What is an abstract class?
- What is a sealed class?
- What is a partial class?
- What are the differences between interfaces and abstract classes?
- What is the difference between method-overloading and method-overriding?
- What are access modifiers?
- What is boxing and unboxing?
- What are the differences between a struct and a class?
- What is an extension method in C# and how do we use it?
- What is managed and unmanaged code?
- What is a virtual method in C#?
- What do you understand by value types and reference types in C#.NET?
- What are design principles?
- What is the single responsibility principle?
- What is the Open/Closed principle?
- What is the Liskov substitution principle?
- What is the interface segregation principle?
- What is the dependency inversion principle?
- Interview and career tips
- Improving your communication skills
- Keep practicing
- Things to learn next
- Building the habit of reading
- Summary
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-07-02 12:45:28