Adt lab/classes

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
This is part of Adt lab

C++ is a class-based object-oriented programming language. Every object in C++ must be an instance of some class. If you are familiar with OOP in Java, most ideas should be familiar; you may need to learn a few new terminologies. There are one main difference: in C++ you have freedom to use an object as a value-typed variable; in Java, every object is a reference variable.

Classes in C++

Review of basic terminologies

Dog class

Simple counter class

ADT: Integer set

Interface

Implementation

Copy constructors