Computer Software


Object-Oriented Programming: Java



Download 85 Kb.
bet27/28
Sana14.02.2021
Hajmi85 Kb.
#58665
1   ...   20   21   22   23   24   25   26   27   28
Bog'liq
Software

Object-Oriented Programming: Java

  • Different objects may have common attributes and behaviors.
  • For example, sedan, truck, and wagon have common attributes (color, style, make) and common behaviors (to start the engine, stop the engine, speed up).
  • We would like to build up an inheritance relationship between the known objects and new objects.This is the way we would like to group similar things together.
  • In object-oriented language(Java), we define classes of objects.
  • A class is a template for multiple objects with similar features. The class car describes the features of all cars.
  • Each class can have superclases and subclasses. Subclass inherits all the methods and variables from its superclasses.
  • For example, car is a superclass of (sedan,truck, and wagon).

Download 85 Kb.

Do'stlaringiz bilan baham:
1   ...   20   21   22   23   24   25   26   27   28




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