Commit e5825aaa authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading
+7 −0
Changes for Intermediate C++ Programming - Working Files/Chapter 1/No Work Files.rtf: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural

\f0\fs24 \cf0 No work files for this lesson...}
 No newline at end of file
+16 −0
Changes for Intermediate C++ Programming - Working Files/Chapter 10/AbstractClass.cpp: 16 added lines, 0 removed lines.
Original line number Diff line number Diff line
#include <List>
using namespace std;
#include "ShapesAbstract.h"

int main()
{
	Shape* aRectangle;

	aRectangle = new Rectangle(color::Black, 2, Point{ 0, 0 }, Point{ 50, 100 });

	delete aRectangle;

	Shape* aShape;

	//aShape = new Shape(color::Black, 2);
}
 No newline at end of file
+35 −0
Changes for Intermediate C++ Programming - Working Files/Chapter 10/BestPC.cpp: 35 added lines, 0 removed lines.
Original line number Diff line number Diff line
#include <vector>
class Motherboard
{

};
class DiskDrive
{

};
class FloppyDisk
{

};
class Keyboard
{

};
class Mouse
{

};
class Screen
{

};
class PC
{
private:
	Motherboard* m;
	std::vector<DiskDrive*> d;
	FloppyDisk* f = nullptr;
	Keyboard* k;
	Mouse* mo;
	std::vector<Screen*> s;
};
 No newline at end of file
+34 −0
Changes for Intermediate C++ Programming - Working Files/Chapter 10/BetterPC.cpp: 34 added lines, 0 removed lines.
Original line number Diff line number Diff line
class Motherboard
{

};
class DiskDrive
{

};
class FloppyDisk
{

};
class Keyboard
{

};
class Mouse
{

};
class Screen
{

};
class PC
{
private:
	Motherboard m;
	DiskDrive d;
	FloppyDisk f;
	Keyboard k;
	Mouse mo;
	Screen s;
};
 No newline at end of file
+26 −0
Changes for Intermediate C++ Programming - Working Files/Chapter 10/Final.cpp: 26 added lines, 0 removed lines.
Original line number Diff line number Diff line
class base 
{
public:
	virtual void foo()
	{
		// ...
	}
};

class derived : public base 
{
public:
	void foo() override final       // virtual as it overrides base::f
	{
		// ...
	}
};

class mostderived : public derived 
{
public:
	void foo()           // error: cannot override!
	{
		// ...
	}
};
 No newline at end of file
Loading