Skip to content

oucs-cosc346-s2-2018/lab04-inheritance-and-composition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Week 4 Inheritance and Composition

This file contains a summary of the information in lab04.html. That file contains the lab instructions and should be opened in a browser so you can see all the images.

In this lab we will:

  • Practise using git
  • Implement a container library using inheritance
  • Implement a container library using composition

As you go through the lab, practise good git commit practises (with sensible commit messages).

In this lab, we're going to explore the IDE integration with git (I know that some/most of you may have already done this, but I'll add some guidance for those that haven't).

Xcode (and many other IDEs) have an inbuilt git client. For this lab, we're going to let Xcode create a repository for the project on GitHub for us. Go to the Xcode Preferences and find the Accounts tab.

Xcode Accounts

Click on the 'plus' button in the bottom left, and select GitHub account (and not the Enterprise option). #to your GitHub account and follow the steps.

New GitHub Account

New GitHub Account Success

Now, when you create a new project make sure the 'Create Git repo' is ticked. This will initialise a new git repository on your local machine and allow you to track the changes as you need to.

New xcode project

To link it to your GitHub account, select the source control icon in the navigation area.

Creating a new GitHub repo

Right click on your project and select 'Create ... remote on GitHub' and follow the prompts (I'd make it a private repo).

GitHub Repo options

Once this is done, you should see the project in your GitHub account.

Result GitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published