KEMBAR78
Practical File IWD | PDF | Method (Computer Programming) | Class (Computer Programming)
0% found this document useful (0 votes)
21 views11 pages

Practical File IWD

The document outlines a series of practical exercises for a subject named IWD with the code 4340704. Each practical focuses on different programming concepts such as class definition, inheritance, method overriding, and abstract classes, all attributed to a student named Parva Makwana. The outputs for each practical are consistently linked to the student's enrollment number.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views11 pages

Practical File IWD

The document outlines a series of practical exercises for a subject named IWD with the code 4340704. Each practical focuses on different programming concepts such as class definition, inheritance, method overriding, and abstract classes, all attributed to a student named Parva Makwana. The outputs for each practical are consistently linked to the student's enrollment number.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Subject Name:-IWD

Subject Code:- 4340704

Practical 7[1]
a. Define a class with constructor and destructor.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071
Subject Name:-IWD
Subject Code:- 4340704

b. Create an object of a class and access its public properties and methods.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071
Subject Name:-IWD
Subject Code:- 4340704

Practical 7[2]
Write a script that uses the set attribute and get attribute methods to access a class’s
private attributes of a class.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071
Subject Name:-IWD
Subject Code:- 4340704

Practical 7[3]
Aim:- Write a script to demonstrate single inheritance.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071
Subject Name:-IWD
Subject Code:- 4340704

Practical 7[4]
Aim:- Write a script to demonstrate multiple inheritance.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071
Subject Name:-IWD
Subject Code:- 4340704

Practical 7[5]
Aim:- Write a script to demonstrate multilevel inheritance.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071
Subject Name:-IWD
Subject Code:- 4340704

Practical 7[6]
Aim:- Write a script to demonstrate method overriding.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071
Subject Name:-IWD
Subject Code:- 4340704

Practical 7[7]
Aim:- Write a script to demonstrate method overloading based on the number of
arguments.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071
Subject Name:-IWD
Subject Code:- 4340704

Practical 7[8]
Aim:- Write a script to demonstrate a simple interface.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071
Subject Name:-IWD
Subject Code:- 4340704

Practical 7[9]
Aim:- Write a script to demonstrate a simple abstract class.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071
Subject Name:-IWD
Subject Code:- 4340704

Practical 7[10]
Aim:- Write a script to demonstrate cloning of objects.

Output:-

Name:- Parva Makwana


Enrollment No. :-236040307071

You might also like