ugmaths

Constructors in Derived Classes

Constructors in Derived Classes A constructor plays a vital role in initializing an object. An important note, while using constructors during inheritance, is that, as long as a base class constructor does not take any arguments, the derived class need not have a constructor function. However, if a base class contains a constructor with one […]

By Malini Devi R |
DETAIL

Virtual base class

Virtual base class Virtual base class is used in situation where a derived have multiple copies of base class. PROGRAM Example without using virtual base class #include<iostream.h> #include<conio.h> class ClassA { public: int a; }; class ClassB : public ClassA { public: int b; }; class ClassC : public ClassA { public: int c; }; […]

By Malini Devi R |
DETAIL

Operators

INTRODUCTION:                     OPERATOR –Symbol that tells the computer to perform certain mathematical or logical manipulations. It is used in programs to manipulate data and variables CATEGORIES OF C  OPERATORS : Arithmetic operators Relational operators Logical operators Assignment operators Increment and decrement operators Conditional operators Bitwise operators Special operators

By Malini Devi R |
DETAIL

Constants Variables and data types

Introduction: A programming language is designed to help process certain kinds of data consisting of numbers, characters and strings and to provide useful output known as information. A sequence of precise instruction called a program. C has its own vocabulary and grammar.

By Malini Devi R |
DETAIL

Types of Inheritance

Inheritance   Inheritance is the process by which new classes called derived classes are created from existing classes called base classes. The derived classes have all the features of the base class and the programmer can choose to add new features specific to the newly created derived class. For example, a programmer can create a […]

By Malini Devi R |
DETAIL

Accessing Interface Variables

Interfaces can be used to declared a set of constants that can be used in different classes.   This is similar to creating header files in C++ to contain a large number of constants.. Since such interfaces do not contain methods , there is no need to worry about implementing any methods.  The constant values […]

By Nandhini S P |
DETAIL

Implementing Interfaces

Please Login to view this page

By Nandhini S P |
DETAIL

summary

Please Login to view this page

By Malini Devi R |
DETAIL

Conversion of chain base index number into fixed base index number

Please Login to view this page

By Malini Devi R |
DETAIL

Extending Interfaces

Please Login to view this page

By Nandhini S P |
DETAIL
TOP
error: