CSC/ECE 517 Fall 2012/ch1 1w21 aa

From Expertiza_Wiki
Revision as of 20:09, 9 September 2012 by Achandr6 (talk | contribs) (Created page with "<p>''' Primitive Objects '''</p> == Introduction == A primitive data type is a basic or in-built type that a programming language provides for its users. These data types can be...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Primitive Objects

Introduction

A primitive data type is a basic or in-built type that a programming language provides for its users. These data types can be used for building other complex and composite data types [1]. In most languages, primitive types usually consist of basic value types for representing the data to be stored. As these data types are built-in, the compilers for these languages usually provide inbuilt support for these data types and so would support most basic operations. In dynamically typed languages like Ruby, these are represented as objects and are referred to as primitive objects. This article discusses the various primitive data types/objects that are present in various objected oriented programming languages and their benefits.

Primitive data types in C++

Primitive data types in Java

Primitive data types in C#

Primitive data types/objects in Ruby

Advantages and Disadvantages

Conclusion