C++ Neural Networks and Fuzzy Logic: Preface


B::C(float,int){whatever the function does}



Download 1,14 Mb.
Pdf ko'rish
bet49/443
Sana29.12.2021
Hajmi1,14 Mb.
#77367
1   ...   45   46   47   48   49   50   51   52   ...   443
Bog'liq
C neural networks and fuzzy logic

B::C(float,int){whatever the function does};

  If you declare a member function D of class B, where D does not return any value and takes no

arguments, you define D using the syntax: void B::D( ){whatever the function does};



  If G is a class derived from, say, class B previously mentioned, you declare G using the syntax:

class G:B. The constructor for G is defined using the syntax: G::G(arguments of

G):B(int){whatever the function does}. If, on the other hand, G is derived from, say, class B as well

as class T, then you declare G using the syntax: class G:B,T.



  If one class is declared as derived from more than one other class, that is, if there are more than

one base class for it, the derivations specification can be different or the same. Thus the class may be

derived from one class publicly and at the same time from another class privately.

  If you have declared a global variable y external to a class B, and if you also have a data member

y in the class B, you can use the external y with the reference symbol ::. Thus ::y refers to the global

variable, whereas y, within a member function of B, or B.y refers to the data member of B. This way

polymorphic functions can also be distinguished from each other.

C++ Neural Networks and Fuzzy Logic:Preface

Writing C++ Programs

36



This is by no means a comprehensive list of features, but more a brief list of important constructs in C++. You

will see examples of C++ usage in later chapters.



Summary

A few highlights of the C++ language are presented.



  C++ is an object−oriented language with full compatibility with the C language.

  You create classes in C++ that encapsulate data and functions that operate on the data, and hiding

data where a public interface is not needed.



  You can create hierarchies of classes with the facility of inheritance. Polymorphism is a feature

that allows you to apply a function to a task according to the object the function is operating on.



  Another feature in C++ is overloading of operators, which allows you to create new functionality

for existing operators in a different context.



  Overall, C++ is a powerful language fitting the object−oriented paradigm that enables software

reuse and enhanced reliability.

Previous Table of Contents Next

Copyright ©

 IDG Books Worldwide, Inc.

C++ Neural Networks and Fuzzy Logic:Preface

Summary

37




Download 1,14 Mb.

Do'stlaringiz bilan baham:
1   ...   45   46   47   48   49   50   51   52   ...   443




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