Hands On Object Oriented Programming With Kotlin

eBook Download

BOOK EXCERPT:

Learn everything you need to know about object-oriented programming with the latest features of Kotlin 1.3 Key FeaturesA practical guide to understand objects and classes in KotlinLearn to write asynchronous, non-blocking codes with Kotlin coroutinesExplore Encapsulation, Inheritance, Polymorphism, and Abstraction in KotlinBook Description Kotlin is an object-oriented programming language. The book is based on the latest version of Kotlin. The book provides you with a thorough understanding of programming concepts, object-oriented programming techniques, and design patterns. It includes numerous examples, explanation of concepts and keynotes. Where possible, examples and programming exercises are included. The main purpose of the book is to provide a comprehensive coverage of Kotlin features such as classes, data classes, and inheritance. It also provides a good understanding of design pattern and how Kotlin syntax works with object-oriented techniques. You will also gain familiarity with syntax in this book by writing labeled for loop and when as an expression. An introduction to the advanced concepts such as sealed classes and package level functions and coroutines is provided and we will also learn how these concepts can make the software development easy. Supported libraries for serialization, regular expression and testing are also covered in this book. By the end of the book, you would have learnt building robust and maintainable software with object oriented design patterns in Kotlin. What you will learnGet an overview of the Kotlin programming languageDiscover Object-oriented programming techniques in Kotlin Understand Object-oriented design patternsUncover multithreading by Kotlin wayUnderstand about arrays and collectionsUnderstand the importance of object-oriented design patternsUnderstand about exception handling and testing in OOP with KotlinWho this book is for This book is for programmers and developers who wish to learn Object-oriented programming principles and apply them to build robust and scalable applications. Basic knowledge in Kotlin programming is assumed

Product Details :

Genre : Computers
Author : Abid Khan
Publisher : Packt Publishing Ltd
Release : 2018-10-31
File : 364 Pages
ISBN-13 : 9781789619645


Hands On Data Structures And Algorithms With Kotlin

eBook Download

BOOK EXCERPT:

Understand and solve complex computational problems and write efficient code with Kotlin Key FeaturesLearn about important data structures such as lists, arrays, queues, and stacksDesign custom algorithms for real-life implementationsIdentify suitable tools for different scenarios and deliver immediate resultsBook Description Data structures and algorithms are more than just theoretical concepts. They help you become familiar with computational methods for solving problems and writing logical code. Equipped with this knowledge, you can write efficient programs that run faster and use less memory. Hands-On Data Structures and Algorithms with Kotlin book starts with the basics of algorithms and data structures, helping you get to grips with the fundamentals and measure complexity. You'll then move on to exploring the basics of functional programming while getting used to thinking recursively. Packed with plenty of examples along the way, this book will help you grasp each concept easily. In addition to this, you'll get a clear understanding of how the data structures in Kotlin's collection framework work internally. By the end of this book, you will be able to apply the theory of data structures and algorithms to work out real-world problems. What you will learnUnderstand the basic principles of algorithms and data structuresExplore general-purpose data structures with arrays and linked listsGet to grips with the basics of stacks, queues, and double-ended queuesUnderstand functional programming and related data structuresUse performant searching and efficient sortingUncover how Kotlin's collection framework functionsBecome adept at implementing different types of mapsWho this book is for If you're a Kotlin developer who wants to learn the intricacies of implementing data structures and algorithms for scalable application development, this book is for you.

Product Details :

Genre : Computers
Author : Chandra Sekhar Nayak
Publisher : Packt Publishing Ltd
Release : 2019-02-28
File : 207 Pages
ISBN-13 : 9781788998819


Hands On Object Oriented Programming 1000 Mcq Ebook

eBook Download

BOOK EXCERPT:

Our 1000+ Object Oriented Programming Questions and Answers focuses on all areas of Object Oriented Programming subject covering 100+ topics in Object Oriented Programming. These topics are chosen from a collection of most authoritative and best reference books on Object Oriented Programming. One should spend 1 hour daily for 15 days to learn and assimilate Object Oriented Programming comprehensively. This way of systematic learning will prepare anyone easily towards Object Oriented Programming interviews, online tests, Examinations and Certifications. Highlights Ø 1000+ Basic and Hard Core High level Multiple Choice Questions & Answers in Object Oriented Programming with Explanations. Ø Prepare anyone easily towards Object Oriented Programming interviews, online tests, Government Examinations and certifications. Ø Every MCQ set focuses on a specific topic in Object Oriented Programming. Ø Specially designed for IBPS IT, SBI IT, RRB IT, GATE CSE, UGC NET CS, PROGRAMMER and other IT & Computer Science related Exams. Who should Practice these Operating Systems Questions? Ø Anyone wishing to sharpen their skills on Object Oriented Programming. Ø Anyone preparing for aptitude test in Object Oriented Programming. Ø Anyone preparing for interviews (campus/off-campus interviews, walk-in interview and company interviews) Ø Anyone preparing for entrance examinations and other competitive examinations. Ø All – Experienced, Freshers and Students. OOPs Basic Concepts -----------------------------------------------------------------------------7 Classes-----------------------------------------------------------------------------------------------11 Objects----------------------------------------------------------------------------------------------15 OOPs Features-------------------------------------------------------------------------------------19 Polymorphism -------------------------------------------------------------------------------------23 Encapsulation--------------------------------------------------------------------------------------29 Abstraction-----------------------------------------------------------------------------------------34 Constructors ---------------------------------------------------------------------------------------38 Types of Constructors----------------------------------------------------------------------------43 Copy Constructor---------------------------------------------------------------------------------48 Overloading Constructors-----------------------------------------------------------------------52 Execution of Constructor or Destructor ----------------------------------------------------57 Destructors-----------------------------------------------------------------------------------------61 Access Specifiers- --------------------------------------------------------------------------------66 Private Access Specifiers -----------------------------------------------------------------------70 Protected Access Specifiers--------------------------------------------------------------------76 Public Access Specifier --------------------------------------------------------------------------82 Data Members ------------------------------------------------------------------------------------87 Member Functions-------------------------------------------------------------------------------91 Local Class------------------------------------------------------------------------------------------95 Nested Class ---------------------------------------------------------------------------------------99 Passing and Returning Object with Functions--------------------------------------------104 Object Reference--------------------------------------------------------------------------------109 Memory Allocation of Object-----------------------------------------------------------------114 Object Use-----------------------------------------------------------------------------------------124 Abstract Class-------------------------------------------------------------------------------------128 Template Class------------------------------------------------------------------------------------132 Base Class------------------------------------------------------------------------------------------137 Derived Class--------------------------------------------------------------------------------------141 Class Use ------------------------------------------------------------------------------------------145 Inheritance----------------------------------------------------------------------------------------149 Types of Inheritance----------------------------------------------------------------------------153 Single Level Inheritance------------------------------------------------------------------------158 Multilevel Inheritance--------------------------------------------------------------------------164 Multiple Inheritance----------------------------------------------------------------------------169 Hierarchical Inheritance------------------------------------------------------------------------178 Virtual Functions --------------------------------------------------------------------------------182 Abstract Function--------------------------------------------------------------------------------186 Types of Member Functions------------------------------------------------------------------190 Member Operator Function------------------------------------------------------------------194 Overloading Member Functions-------------------------------------------------------------199 Overriding Member Functions---------------------------------------------------------------204 Constant Member Functions-----------------------------------------------------------------209 Private Member Functions--------------------------------------------------------------------213 Public Member Functions --------------------------------------------------------------------217 Exception Handling-----------------------------------------------------------------------------222 Catching Class Types---------------------------------------------------------------------------227 Static Data Members---------------------------------------------------------------------------231 Static Member Functions---------------------------------------------------------------------236 Passing Object to Functions------------------------------------------------------------------240 Returning Objects-------------------------------------------------------------------------------245 Assigning Objects -------------------------------------------------------------------------------249 Pointer to Objects-------------------------------------------------------------------------------254 This Pointer---------------------------------------------------------------------------------------259 Default Arguments------------------------------------------------------------------------------263 Constructors Overloading---------------------------------------------------------------------267 Upcasting------------------------------------------------------------------------------------------271 Downcasting--------------------------------------------------------------------------------------276 New Operator------------------------------------------------------------------------------------280 Delete Operator----------------------------------------------------------------------------------284 Automatic Variable------------------------------------------------------------------------------288 Extern Variable ----------------------------------------------------------------------------------292 Inbuilt Classes------------------------------------------------------------------------------------297 IO Class --------------------------------------------------------------------------------------------301 String Class----------------------------------------------------------------------------------------305

Product Details :

Genre : Computers
Author : Harry Chaudhary.
Publisher : STCD COMPANY
Release : 2018-08-15
File : 308 Pages
ISBN-13 : 9780359049714


Learn Kotlin Programming

eBook Download

BOOK EXCERPT:

Delve into the world of Kotlin and learn to build powerful Android and web applications Key FeaturesLearn the fundamentals of Kotlin to write high-quality codeTest and debug your applications with the different unit testing frameworks in KotlinExplore Kotlin's interesting features such as null safety, reflection, and annotationsBook Description Kotlin is a general-purpose programming language used for developing cross-platform applications. Complete with a comprehensive introduction and projects covering the full set of Kotlin programming features, this book will take you through the fundamentals of Kotlin and get you up to speed in no time. Learn Kotlin Programming covers the installation, tools, and how to write basic programs in Kotlin. You'll learn how to implement object-oriented programming in Kotlin and easily reuse your program or parts of it. The book explains DSL construction, serialization, null safety aspects, and type parameterization to help you build robust apps. You'll learn how to destructure expressions and write your own. You'll then get to grips with building scalable apps by exploring advanced topics such as testing, concurrency, microservices, coroutines, and Kotlin DSL builders. Furthermore, you'll be introduced to the kotlinx.serialization framework, which is used to persist objects in JSON, Protobuf, and other formats. By the end of this book, you'll be well versed with all the new features in Kotlin and will be able to build robust applications skillfully. What you will learnExplore the latest Kotlin features in order to write structured and readable object-oriented codeGet to grips with using lambdas and higher-order functionsWrite unit tests and integrate Kotlin with Java codeCreate real-world apps in Kotlin in the microservices styleUse Kotlin extensions with the Java collections libraryUncover destructuring expressions and find out how to write your ownUnderstand how Java-nullable code can be integrated with Kotlin featuresWho this book is for If you’re a beginner or intermediate programmer who wants to learn Kotlin to build applications, this book is for you. You’ll also find this book useful if you’re a Java developer interested in switching to Kotlin.

Product Details :

Genre : Computers
Author : Stephen Samuel
Publisher : Packt Publishing Ltd
Release : 2019-05-29
File : 497 Pages
ISBN-13 : 9781789808742


Mastering Kotlin

eBook Download

BOOK EXCERPT:

Explore popular language features, Java to Kotlin interoperability, advanced topics, and practical applications by building a variety of sample projects Key FeaturesUnderstand and leverage the syntax, tools, and patterns by writing code in KotlinExplore practical topics such as Java interop, concurrency with coroutines, and functional programmingDiscover how to use Kotlin for build targets like Android, iOS, JavaScript, and backend serviceBook Description Using Kotlin without taking advantage of its power and interoperability is like owning a sports car and never taking it out of the garage. While documentation and introductory resources can help you learn the basics of Kotlin, the fact that it’s a new language means that there are limited learning resources and code bases available in comparison to Java and other established languages. This Kotlin book will show you how to leverage software designs and concepts that have made Java the most dominant enterprise programming language. You’ll understand how Kotlin is a modern approach to object-oriented programming (OOP). This book will take you through the vast array of features that Kotlin provides over other languages. These features include seamless interoperability with Java, efficient syntax, built-in functional programming constructs, and support for creating your own DSL. Finally, you will gain an understanding of implementing practical design patterns and best practices to help you master the Kotlin language. By the end of the book, you'll have obtained an advanced understanding of Kotlin in order to be able to build production-grade applications. What you will learnModel data using interfaces, classes, and data classesGrapple with practical interoperability challenges and solutions with JavaBuild parallel apps using concurrency solutions such as coroutinesExplore functional, reactive, and imperative programming to build flexible appsDiscover how to build your own domain-specific languageEmbrace functional programming using the standard library and ArrowDelve into the use of Kotlin for frontend JavaScript developmentBuild server-side services using Kotlin and KtorWho this book is for If you’re a Kotlin developer looking to further their skills or a professional Java developer looking for better or professional resources in order to make a switch to Kotlin, this book is for you. Familiarity with Kotlin programming will assist with understanding key concepts covered in the book.

Product Details :

Genre : Computers
Author : Nate Ebel
Publisher : Packt Publishing Ltd
Release : 2019-10-11
File : 417 Pages
ISBN-13 : 9781838552367


Kotlin For Enterprise Applications Using Java Ee

eBook Download

BOOK EXCERPT:

Build Java Enterprise Applications and learn how Kotlin makes it easier to code them using components like JSF 2.3, Enterprise JavaBeans (EJB) 3.2, Contexts and Dependency Injection (CDI) 2.0, the Java API for WebSockets, JAX-RS 2.1, Servlet 4.0. Key FeaturesAn in-depth guide updated with all the latest features of Kotlin 1.2 and Java EE 8Build microservices in Java EE with the help of Kotlin use casesExplore coroutines, garbage collection, multithreading, memory management and moreBook Description Kotlin was developed with a view to solving programmers’ difficulties and operational challenges. This book guides you in making Kotlin and Java EE work in unison to build enterprise-grade applications. Together, they can be used to create services of any size with just a few lines of code and let you focus on the business logic. Kotlin for Enterprise Applications using Java EE begins with a brief tour of Kotlin and helps you understand what makes it a popular and reasonable choice of programming language for application development, followed by its incorporation in the Java EE platform. We will then learn how to build applications using the Java Persistence API (JPA) and Enterprise JavaBeans (EJB), as well as develop RESTful web services and MicroServices. As we work our way through the chapters, we’ll use various performance improvement and monitoring tools for your application and see how they optimize real-world applications. At each step along the way, we will see how easy it is to develop enterprise applications in Kotlin. By the end of this book, we will have learned design patterns and how to implement them using Kotlin. What you will learnUnderstand Kotlin syntax and appreciate why it’s gaining in popularityExplore the Java EE ecosystem and the APIs in Java EEImplement applications using KotlinOvercome the challenges of developing the Java EE system using KotlinGain insights into Java Message Services (JMS)Build RESTful MicroServices and secure applicationsOptimize applications with performance and monitoring toolsUnderstand design patterns and implement themWho this book is for Kotlin for Enterprise Applications using Java EE is for Java EE developers who want to build their enterprise project or application with Kotlin or migrate from Java to Kotlin. Basic knowledge of programming is necessary to understand the key concepts covered in this book.

Product Details :

Genre : Computers
Author : Raghavendra Rao K
Publisher : Packt Publishing Ltd
Release : 2018-11-30
File : 375 Pages
ISBN-13 : 9781788994392


Hands On Design Patterns With Kotlin

eBook Download

BOOK EXCERPT:

Make the most of Kotlin by leveraging design patterns and best practices to build scalable and high performing apps Key Features Understand traditional GOF design patterns to apply generic solutions Shift from OOP to FP; covering reactive and concurrent patterns in a step-by-step manner Choose the best microservices architecture and MVC for your development environment Book Description Design patterns enable you as a developer to speed up the development process by providing you with proven development paradigms. Reusing design patterns helps prevent complex issues that can cause major problems, improves your code base, promotes code reuse, and makes an architecture more robust. The mission of this book is to ease the adoption of design patterns in Kotlin and provide good practices for programmers. The book begins by showing you the practical aspects of smarter coding in Kotlin, explaining the basic Kotlin syntax and the impact of design patterns. From there, the book provides an in-depth explanation of the classical design patterns of creational, structural, and behavioral families, before heading into functional programming. It then takes you through reactive and concurrent patterns, teaching you about using streams, threads, and coroutines to write better code along the way By the end of the book, you will be able to efficiently address common problems faced while developing applications and be comfortable working on scalable and maintainable projects of any size. What you will learn Get to grips with Kotlin principles, including its strengths and weaknesses Understand classical design patterns in Kotlin Explore functional programming using built-in features of Kotlin Solve real-world problems using reactive and concurrent design patterns Use threads and coroutines to simplify concurrent code flow Understand antipatterns to write clean Kotlin code, avoiding common pitfalls Learn about the design considerations necessary while choosing between architectures Who this book is for This book is for developers who would like to master design patterns with Kotlin to build efficient and scalable applications. Basic Java or Kotlin programming knowledge is assumed

Product Details :

Genre : Computers
Author : Alexey Soshin
Publisher : Packt Publishing Ltd
Release : 2018-06-15
File : 299 Pages
ISBN-13 : 9781788999595


Kotlin Crash Course

eBook Download

BOOK EXCERPT:

Quickly master Kotlin by practicing what you learn KEY FEATURES ● Understand Kotlin concepts and best practices. ● Apply what you learn in eight engaging interactive projects. ● Build real-world applications, including REST APIs and serverless deployments. DESCRIPTION Kotlin Crash Course is a fast-paced, hands-on introduction to Kotlin, preparing readers to build robust applications efficiently using the latest language features and best practices. The book is divided into comprehensive chapters that cover key Kotlin programming topics such as object-oriented and functional programming, collections, concurrency, and unit testing. Each chapter takes a learning by doing approach, focusing on practical projects rather than solely theoretical knowledge. This strategy improves knowledge retention by simulating real-life experiences, allowing students to apply concepts in practice as they learn them. Furthermore, the book is interwoven with an abundance of best practices obtained from industry experience. This approach ensures that even beginners can gain seasoned insights and apply their knowledge confidently to real-world challenges. By the end of this comprehensive course, you will not only possess a strong foundation in Kotlin programming but also the practical skills to build real-world applications, including REST APIs and serverless applications leveraging Kotlin's cloud capabilities. WHAT YOU WILL LEARN ● Understand Kotlin syntax and basic coding conventions. ● Master object-oriented and functional programming concepts. ● Utilize Kotlin’s collection framework effectively. ● Implement concurrency and parallelism with coroutines. ● Build robust applications with best practices. ● Develop diverse applications, including REST APIs and serverless solutions. WHO THIS BOOK IS FOR This book is suitable for students, programmers from other languages, Java developers, back-end developers, full-stack developers, and mobile developers. The book is appropriate for both new and experienced programmers wishing to acquire or refresh their Kotlin skills. TABLE OF CONTENTS 1. Discovering the Power of Kotlin Programming 2. Kotlin Syntax and Basic Coding Conventions 3. Setting up the Development Environment 4. Fundamental Building Blocks of Kotlin 5. Object-oriented Programming 6. Kotlin Collection Framework 7. Scope Functions 8. Functional Programming 9. Exploring Delegation Design Pattern 10. Concurrency and Parallelism 11. Unit Testing in Kotlin 12. Building a Simple REST API 13. Building Event-Driven Cloud Native Serverless Application

Product Details :

Genre : Computers
Author : Elena van Engelen - Maslova
Publisher : BPB Publications
Release : 2024-06-27
File : 669 Pages
ISBN-13 : 9789355516305


Learn Spring For Android Application Development

eBook Download

BOOK EXCERPT:

A hands-on guide to Android programming with Spring MVC, Spring Boot, and Spring Security Key FeaturesBuild native Android applications with Spring for AndroidExplore Reactive programming, concurrency, and multithreading paradigms for building fast and efficient applicationsWrite more expressive and robust code with Kotlin using its coroutines and other latest featuresBook Description As the new official language for Android, Kotlin is attracting new as well as existing Android developers. As most developers are still working with Java and want to switch to Kotlin, they find a combination of these two appealing. This book addresses this interest by bringing together Spring, a widely used Java SE framework for building enterprise-grade applications, and Kotlin. Learn Spring for Android Application Development will guide you in leveraging some of the powerful modules of the Spring Framework to build lightweight and robust Android apps using Kotlin. You will work with various modules, such as Spring AOP, Dependency Injection, and Inversion of Control, to develop applications with better dependency management. You’ll also explore other modules of the Spring Framework, such as Spring MVC, Spring Boot, and Spring Security. Each chapter has practice exercises at the end for you to assess your learning. By the end of the book, you will be fully equipped to develop Android applications with Spring technologies. What you will learnGet to grips with the basics of the Spring FrameworkWrite web applications using the Spring Framework with KotlinDevelop Android apps with KotlinConnect a RESTful web service with your app using RetrofiltUnderstand JDBC, JPA, MySQL for Spring and SQLite Room for AndroidExplore Spring Security fundamentals, Basic Authentication, and OAuth2Delve into Concurrency and Reactive programming using KotlinDevelop testable applications with Spring and AndroidWho this book is for If you’re an aspiring Android developer or an existing developer who wants to learn how to use Spring to build robust Android applications in Kotlin, this book is for you. Though not necessary, basic knowledge of Spring will assist with understanding key concepts covered in this book.

Product Details :

Genre : Computers
Author : S. M. Mohi Us Sunnat
Publisher : Packt Publishing Ltd
Release : 2019-01-31
File : 383 Pages
ISBN-13 : 9781789341911


Programming Kotlin

eBook Download

BOOK EXCERPT:

Familiarize yourself with all of Kotlin's features with this in-depth guide About This Book Get a thorough introduction to Kotlin Learn to use Java code alongside Kotlin without any hiccups Get a complete overview of null safety, Generics, and many more interesting features Who This Book Is For The book is for existing Java developers who want to learn more about an alternative JVM language. If you want to see what Kotlin has to offer, this book is ideal for you. What You Will Learn Use new features to write structured and readable object-oriented code Find out how to use lambdas and higher order functions to write clean, reusable, and simple code Write unit tests and integrate Kotlin tests with Java code in a transitioning code base Write real-world production code in Kotlin in the style of microservices Leverage Kotlin's extensions to the Java collections library Use destructuring expressions and find out how to write your own Write code that avoids null pointer errors and see how Java-nullable code can integrate with features in a Kotlin codebase Discover how to write functions in Kotlin, see the new features available, and extend existing libraries Learn to write an algebraic data types and figure out when they should be used In Detail Kotlin has been making waves ever since it was open sourced by JetBrains in 2011; it has been praised by developers across the world and is already being adopted by companies. This book provides a detailed introduction to Kotlin that shows you all its features and will enable you to write Kotlin code to production. We start with the basics: get you familiar with running Kotlin code, setting up, tools, and instructions that you can use to write basic programs. Next, we cover object oriented code: functions, lambdas, and properties – all while using Kotlin's new features. Then, we move on to null safety aspects and type parameterization. We show you how to destructure expressions and even write your own. We also take you through important topics like testing, concurrency, microservices, and a whole lot more. By the end of this book you will be able to compose different services and build your own applications. Style and approach An easy to follow guide that covers the full set of features in Kotlin programming.

Product Details :

Genre : Computers
Author : Stephen Samuel
Publisher : Packt Publishing Ltd
Release : 2017-01-18
File : 413 Pages
ISBN-13 : 9781787122659