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

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 2: แถว 2:
  
 
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.
 
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 ==
 +
 +
* [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]
 +
* [http://www.cplusplus.com/doc/tutorial/ Tutorial] from cplusplus.com
 +
 +
* [http://www.horstmann.com/ccj2/ccjapp3.html Moving from Java to C++]
 +
* [http://cs.brown.edu/courses/cs123/docs/java_to_cpp.shtml Java to C++ Transition Tutorial]
  
 
== Classes in C++ ==
 
== Classes in C++ ==
  
 
=== Review of basic terminologies ===
 
=== Review of basic terminologies ===
 +
 +
  
 
=== Dog class ===
 
=== Dog class ===

รุ่นแก้ไขเมื่อ 23:26, 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