Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
Update e2.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
vanshitaverma authored Oct 23, 2022
1 parent 3360a30 commit 3251e52
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions error_help/e2.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
To define a class use the following syntax
Error #2: Syntax error in the class definition

class name:
"Your code here"
To define a class, use the following syntax:

To define a class with multiple inheritance use the following syntax
class <name>:
[Your code here]

class name(object1,object2):
"Your code here"
To define a class with multiple inheritance, use the following syntax:

class <name>(<object1>,<object2>):
[Your code here]

In the above samples:
1. Text written between <> is changeable as per requirement.
2. Code goes between [].

0 comments on commit 3251e52

Please sign in to comment.