« Home « Chủ đề Giáo trình NIIT Quarter 2

Chủ đề : Giáo trình NIIT Quarter 2


Có 25+ tài liệu thuộc chủ đề "Giáo trình NIIT Quarter 2"

Encapsulation and Abstraction

tailieu.vn

Consider the following example:. For example, when you plug in the cord of the vacuum cleaner and turn on the switch, the vacuum cleaner starts. In other words, the exact working of the cleaner has been encapsulated. Therefore, encapsulation is also explained as information hiding or data hiding because it involves hiding many of the important details of an object...

Introduction to .NET Framework

tailieu.vn

Introduction to .NET. The .NET Framework enables you to create robust and scalable applications. The .NET Framework consists of Common Language Runtime, Common Language Specification, and the Just-In-Time compiler.. Before you can use Visual Studio .NET for creating a console-based application, you need to understand the .NET Framework and the Visual Studio .NET Integrated Development Environment.. This chapter introduces the...

Creating Value Types and Reference Types

tailieu.vn

However, both the variables contain different copies of the value 50 . Num2 contains the copy of the data in Num1 Num1. The following figure is a diagrammatic representation of the memory allocated to the value type variable.. The object Mercedes of the class Car is initialized with Ford , which is also an object of the same class. Console.WriteLine...

Constructors and Destructors

tailieu.vn

Constructors and. Constructors are used to initialize objects. Conversely, you can use destructors to delete an object when it is not required.. destructors help in identifying the life cycle of the object.. Identify the life cycle of an object. A constructor is a special type of method that is invoked when you create a new instance of a class. A...

Polymorphism

tailieu.vn

One approach can be to have two functions of different names, as shown in the following code:. You can have two functions with the same name but with different parameters, as shown in the following code:. The following code is an example showing the usage of operator. Virtual functions: Are the functions that do not really exist, however, appear to...