Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Practical C Programming

You're reading from   Practical C Programming Solutions for modern C developers to create efficient and well-structured programs

Arrow left icon
Product type Paperback
Published in Feb 2020
Publisher Packt
ISBN-13 9781838641108
Length 616 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
 Harwani Harwani
Author Profile Icon Harwani
Harwani
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Section 1: Kali Linux – Not Just for Penetration Testing
2. Chapter 1: Packt Chapter (H1 – Chapter) FREE CHAPTER 3. Chapter 2: Installing Kali Linux 4. Section 2: Forensic Fundamentals and Best Practices
5. Chapter 3: Understanding Filesystems and Storage Media 6. Chapter 4: Incident Response and Data Acquisition 7. Assessments 8. Other Books You May Enjoy

Chapter 6

  1. Generics are types parametrized with other types. Generics provide reusability, promote type safety, and can provide better performance (by avoiding the need for boxing and unboxing for value types).
  2. A type used for parameterizing a generic type or method is called a type parameter.
  3. Generic classes are defined in the same way as non-generic classes except for a list of one or more type parameters, specified within angle brackets (such as <T>) after the class name. The same is true for generic methods; the type parameters are specified after the class name.
  4. Classes can be derived from generic types. Structures do not support explicit inheritance, but they can implement any number of generic interfaces.
  5. A constructed type is a type that is constructed from a generic type by replacing the type parameters with actual types. For instance, for a Shape<T> generic type, the Shape<int> is a constructed type.
  6. A covariant type parameter is...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images