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

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 1: แถว 1:
 
: ''This is part of [[Adt lab]]''
 
: ''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.
+
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.
  
 
== Classes in C++ ==
 
== Classes in C++ ==

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

Classes in C++

Review of basic terminologies

Dog class

Simple counter class

ADT: Integer set

Interface

Implementation

Copy constructors