BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan

BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan (http://bzupages.com/)
-   Software Engineering II (http://bzupages.com/47-software-engineering-ii/)
-   -   1st Assignment: Inheritance and Its types by sir Maruf Pasha (http://bzupages.com/f47/1st-assignment-inheritance-its-types-sir-maruf-pasha-14299/)

.BZU. 15-02-2011 07:08 AM

1st Assignment: Inheritance and Its types by sir Maruf Pasha
 
s/w engr 2 ......................

Inheritance and Its types?

It provides the idea of Reusability
It is a process by which objects of one class acquire the properties of objects of another class.
It has super class and sub classes

Single Inheritance
Multilevel Inheritance
Hierarchical Inheritance
Multiple Inheritance
Hybrid Inheritance
...........................
Encapsulation :

It is the most striking features of class
It provides interface between object’s data and program
Encapsulation is the hiding of information in order to ensure that data
structures and operators are used as intended and to make the usage model
more obvious to the developer. C++ provides the ability to define classes
and functions as its primary encapsulation mechanisms.
...........................
Abstraction :

It refers to an act of representing essential features without including the background details.
Classes use the concept of abstraction
Data hiding
......................
Polymorphism enables one common interface for many implementations,
and for objects to act differently under different circumstances.

C++ supports several kinds of static (compile-time)
and dynamic (run-time) polymorphisms. Compile-time polymorphism does
not allow for certain run-time decisions, while run-time
polymorphism typically incurs a performance penalty.


All times are GMT +5. The time now is 07:31 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.