ผลต่างระหว่างรุ่นของ "Adt lab/classes"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 5: แถว 5:
 
== On-line resources ==
 
== On-line resources ==
  
* [https://en.wikibooks.org/wiki/C%2B%2B_Programming C++ Programming] on wikibooks: [https://en.wikibooks.org/wiki/C%2B%2B_Programming/Chapter_Object_Oriented_Programming OOP chapter]
+
* [https://en.wikibooks.org/wiki/C%2B%2B_Programming C++ Programming] on wikibooks: [https://en.wikibooks.org/wiki/C%2B%2B_Programming/Classes classes section]
 
* [http://www.cplusplus.com/doc/tutorial/ Tutorial] from cplusplus.com
 
* [http://www.cplusplus.com/doc/tutorial/ Tutorial] from cplusplus.com
  

รุ่นแก้ไขเมื่อ 23:29, 3 กันยายน 2558

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. We will look at these basic idea this week.

On-line resources

Classes in C++

Review of basic terminologies

Dog class

Simple counter class

ADT: Integer set

Interface

Implementation

Copy constructors