Computer Science, asked by manikanta0827, 10 months ago

Write a program to create a class Voter which contains attributes name, date_of_birth and voter_id and voter has a Voter_Card. Provide appropriate constructor to initialize all the attributes of the Voter but voter id must be assigned automatically only when the age of the voter is greater than or equal to 18 years.
Voter Card is a nested class with attributes voter_id and Voter_name. Make sure that voter card is created only when user is a valid voter and if it is already created then must not be assigned the new voter id.

Answers

Answered by ramuranig
0

Answer:

I don't know jdjsjsjsjdhsuwhd

Answered by sharmatrishna018
0

Answer:

hello to everyone thank you

Similar questions