Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Abstract Method and Linked List in Python

Rating
-
Sold
-
Pages
1
Uploaded on
05-05-2026
Written in
2025/2026

Provides notes for abstract method and Linked List topics in python

Institution
Course

Content preview

PYTHON NOTES JEGAN K K

ABSTRACT CLASS

Abstract classes can be created in which cases like a function must be implemented in the
derived or sub-classes.

Syntax:
from abc import ABC, abstractmethod
class Animal(ABC):
@abstractmethod
def move():
pass
class Dog(Animal):
def move():
pass
 In the above example the class Dog must have a definition for the method move()
which is an abstract method.
 Without definition, it wouldn’t instantiate the references created for the Dog class.
 I had chosen move because move() is a mandatory function for any animal.
 The definition has no constraint, it has to be defined in the sub-class with same
method name

LINKED LIST

Linked List is a data structure in which there is a chain of nodes present with 2 fields
each. First field is the data and the second is the reference (i.e, next).

Reference field holds the reference for the next node, therefore connecting it like a series
of elements.

Linked List is of 3 types in general terms,
1. Singly Linked List
2. Doubly Linked List
3. Circular Linked List

where singly circular linked list, doubly circular linked list can be created by connecting
nodes in a circular form.

Doubly linked list has 3 fields, which is previous node reference, data, next node
reference.

Difference between singly and doubly linked list is that singly linked list can be traversed
only forward whereas doubly linked list can be traversed in both forward and backward
ways.

Written for

Course

Document information

Uploaded on
May 5, 2026
Number of pages
1
Written in
2025/2026
Type
Class notes
Professor(s)
Jegan k k
Contains
Abstract method, linked list

Subjects

$3.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
jegan

Get to know the seller

Seller avatar
jegan Self Employed
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 day
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions