Publications


Introduction to C++ 1.8 C



Download 248,22 Kb.
Pdf ko'rish
bet25/25
Sana31.12.2021
Hajmi248,22 Kb.
#201997
1   ...   17   18   19   20   21   22   23   24   25
Bog'liq
CChapter1

19

Introduction to C++



1.8 C

OMPARISON OF

  P

ROCEDURE

–O

RIENTED PROGRAMMING AND

O

BJECT

–O

RIENTED PROGRAMMING

:

Figure 1.8 gives the comparison between POP and OOP.



Procedure–Oriented Programming Object–Oriented Programming

1. Focus is on the functions.

1. Focus is on the data.

2. Data is not secure and can be

2. Data is secure.

corrupted.

3. Uses top–down programming

3. Uses bottom-up programming

design.

design.


4. Does not model real world

4. Models real world problems.

problems.

5. Programs are divided into

5. Programs are divided into objects.

functions.



Fig. 1.8 Comparison of POP and OOP

R

EVIEW

  Q

UESTIONS

Short Answer Questions

1.

What  is  object-oriented  programming?  How  is  it  different  from  procedure–



oriented programming?

2.

What is the difference between



(a) Object and class

(b) Data abstraction and data encapsulation

(c) Inheritance and polymorphism

(d) Dynamic binding and message communication.

3.

Describe the characteristics of OOP.



4.

List any two advantages of OOP.

5.

What is function overloading? Explain.



6.

What is operator overloading? Explain.

7.

Explain the concept of polymorphism.



8.

Explain the concept of Inheritance.

9.

What is Reusability?




20

Object Oriented Programming Using C++

10. Compare object-oriented programming and procedure-oriented programming.

11. List a few applications of OOP technology.

12. What is dynamic binding? Explain.

13. What is message passing? Explain.

14. List a few OOP languages.

15. What is data hiding?

16. Explain data encapsulation.

17. What are objects? How are they created?

18. Explain data abstraction.

19. What is late binding? How is it different from static binding?

20. What are the demerits of procedure-oriented programming?

21. Give the demerits of OOP.



Long Answer Questions

1.

Explain the benefits of object-oriented programming.



2.

Explain objects and classes with examples.

3.

Write the applications of OOP.



4.

Explain inheritance and polymorphism.

5.

Explain Dynamic binding and message passing.



__________

View publication stats



View publication stats

Download 248,22 Kb.

Do'stlaringiz bilan baham:
1   ...   17   18   19   20   21   22   23   24   25




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish