Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
41 views

Object Oriented Approach

The document discusses object-oriented programming concepts like classes, data members, member functions, and objects. It also covers precedence of operators in C++ and provides examples of design and implementation stages of a program for an academic management system and a file processing program.

Uploaded by

Gaurav Sharma
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Object Oriented Approach

The document discusses object-oriented programming concepts like classes, data members, member functions, and objects. It also covers precedence of operators in C++ and provides examples of design and implementation stages of a program for an academic management system and a file processing program.

Uploaded by

Gaurav Sharma
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

CLASS

Data Members
Member Functions

Object 1

Object 2

Object 3

A. Object Oriented Approach

B. An Example

Precedence of Operators

:: (Scope Resolution Operator)


. , ->, [], (), ++ (post- increment), -- (post- decrement), typeid, dynamic_cast, static_cast,
reinterpret_cast, const_cast
~, !, +, - (unary), ++ (pre-increment), -- (pre-decrement), new, delete, & (reference), *
(dereference), sizeof
.* , ->*
*(multiply) , / , %
+, - (binary)
<< , >>
< , > , <= , >=
==, !=
& (bitwise AND)
^ (bitwise XOR)
| (bitwise OR)
&& (Logical AND)
|| (Logical OR)
= , += , -= , *=, /=, %=, <<= , >>= , &=, |= , ^=
?:
throw
,

These precedence rules can be overridden by using parentheses.

Design phase program:

Design a class hierarchy for Academic Management System of GIMET.

Advance Stage Program:


WAP to copy the contents of one file and convert each character from uppercase to lowercase
and vice versa and copy those contents to the other file.

You might also like