Saturday, October 30, 2010

EXAMINATION TIMETABLE - THIRD SEMESTER

LAB EXAMINATION01-11-2010 DATA STRUCTURES02-11-2010 OBJECT ORIENTED PROGRAMMING.03-11-2010 DIGITAL PRINCIPLES & SYSTEM DESIGN.THEORY EXAMINATION10-11-2010 DIGITAL PRINCIPLES & SYSTEM DESIGN. 12-11-2010 ANALOG & DIGITAL COMMUNICATION.15-11-2010 OBJECT ORIENTED PROGRAMMING.18-11-2010 ENVIRONMENTAL...

DPSD LAB QUESTIONS-MODEL ONLY

12.00 Normal 0 false false false EN-US X-NONE X-NONE ...

SIMPLE C++ PROGRAMS

----------------------------------------------------------------------------------------------A C++ PROGRAM TO IMPLEMENT PALINDROME CHECK WITHOUT CLASSESCOMPILER EMPLOYED: DEV C++ COMPILER-4.9.9.2 SOURCE FILE SIZE :3 kbEXE FILE SIZE :580 kbNOTE: PLEASE INCLUDE THE DESIRED HEADER FILE---------------------------------------------------------------------------------------------C++ PROGRAM SOURCE & EXE DOWNLOAD:Click download button...

OBJECT ORIENTED OPERATIONS

FUNCTION OVERLOADINGYou overload a function name f by declaring more than one function with the name f in the same scope. The declarations of f must differ from each other by the types and/or the number of arguments in the argument list. When you call an overloaded function named f, the correct function is selected by comparing the argument list of the function call with the parameter list of each of the overloaded candidate functions with the name...

LOCAL & NESTED CLASSES

LOCAL CLASSESA local class is declared within a function definition. Declarations in a local class can only use type names, enumerations, static variables from the enclosing scope, as well as external variables and functions.Member functions of a local class have to be defined within their class definition, if they are defined at all. As a result, member functions of a local class are inline functions. Like all member functions, those defined within...

FRIEND FUNCTION-MATRIX VECTOR MULTIPLICATION

A friend of a class X is a function or class that is not a member of X, but is granted the same access to X as the members of X. Functions declared with the friend specifier in a class member list are called friend functions of that class. Classes declared with the friend specifier in the member list of another class are called friend classes of that class. A class Y must be defined before any member of Y can be declared a friend of another class.----------------------------------------------------------------------------------------------A...

OVERLOADING-OPERATORS

You can redefine or overload the function of most built-in operators in C++. These operators can be overloaded globally or on a class-by-class basis. Overloaded operators are implemented as functions and can be member functions or global functions. Operator overloading involving vector types is not supported. An overloaded operator is called an operator function. You declare an operator function with the keyword operator preceding the operator. Overloaded...

USER DEFINED CONVERSIONS

User-defined conversions allow you to specify object conversions with constructors or with conversion functions. User-defined conversions are implicitly used in addition to standard conversions for conversion of initializers, functions arguments, function return values, expression operands, expressions controlling iteration, selection statements, and explicit type conversions. There are two types of user-defined conversions: Conversion by constructorConversion...

CLASS TEMPLATE - LINKED LISTS

A class template provides a specification for generating classes based on parameters. Class templates are commonly used to implement containers. A class template is instantiated by passing a given set of types to it as template arguments. The C++ Standard Library contains many class templates, in particular the containers adapted from the Standard Template Library, such as vector----------------------------------------------------------------------------------------------A...

Friday, October 29, 2010

FUNCTION TEMPLATE-SORTING

A function template behaves like a function except that the template can have arguments of many different types (see example). In other words, a function template represents a family of functions. For example, the C++ Standard Library contains the function template max(x, y) which returns either x or y, whichever is larger. max() could be defined like this, using the following template: In the first two cases, the template argument T is automatically...

MULTIPLE INHERITANCE

Multiple inheritance refers to a feature of some object-oriented programming languages in which a class can inherit behaviors and features from more than one superclass. This contrasts with single inheritance, where a class may inherit from at most one superclass.Multiple inheritance allows a class to take on functionality from multiple other classes, such as allowing a class named StreetMusician to inherit from a class named Human, a class named...

EXCEPTION HANDLING - QUEUE

Exception handling is a programming language construct or computer hardware mechanism designed to handle the occurrence of exceptions, special conditions that change the normal flow of program execution. Programming languages differ considerably in their support for exception handling (as distinct from error checking, which is normal program flow that codes for responses to adverse contingencies such as invalid state changes or the unsuccessful...

EXCEPTION HANDLING-STACK

Exception handling is a programming language construct or computer hardware mechanism designed to handle the occurrence of exceptions, special conditions that change the normal flow of program execution. Programming languages differ considerably in their support for exception handling (as distinct from error checking, which is normal program flow that codes for responses to adverse contingencies such as invalid state changes or the unsuccessful...

HYBRID INHERITANCE

A program (frequently called "class") can be used to create a new program that will include the original characteristics of the original program, and it allows the replacement of some of those characteristics, and the addition of new ones. One of the key characteristic of inheritance is the fact that changes ocurred in the original program (class) will automatically be incorporated in the programs using that class. Inheritance is the meachanism...

RTTI-SHAPE HIERARCHY

In programming, RTTI (Run-Time Type Information, or Run-Time Type Identification) refers to a C++ system that keeps information about an object's data type in memory at runtime. Run-time type information can apply to simple data types, such as integers and characters, or to generic objects. This is a C++ implementation of a more generic concept called reflection. In the original C++ design, Stroustrup did not include run-time type information,...

RUN TIME POLYMORPHISM - SHAPE HIERARCHY

In object-oriented programming, a virtual function or virtual method is a function or method whose behaviour can be overridden within an inheriting class by a function with the same signature. This concept is a very important part of the polymorphism portion of object-oriented programming (OOP).The concept of the virtual function solves the following problem: In OOP when a derived class inherits from a base class, an object of the derived class...