Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Conversation

@AbubakerB
Copy link
Contributor

This PR adds some documentation for private and protected constructor in Classes.md
(TypeScript-6885#comment)

pages/Classes.md Outdated
}

new Animal("Cat").name; // Error: 'name' is private;
new Employee("Bob"); // Error: 'Employee' is private;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'Employee' constructor is private.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't end these with semicolons

@AbubakerB AbubakerB changed the title Add private and protected constructor topic Add protected constructor topic Feb 19, 2016
DanielRosenwasser added a commit that referenced this pull request Feb 19, 2016
@DanielRosenwasser DanielRosenwasser merged commit 97047b5 into microsoft:master Feb 19, 2016
@DanielRosenwasser
Copy link
Member

I've created a new branch called release-2.0 where the content is available.

@AbubakerB AbubakerB deleted the classesModifierUpdate branch February 19, 2016 21:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants