#challenge 2 for week 7
#import the perant "Library" class 
from Day46 import Library

#create a child class named Science_Section
class Science_Section(Library):
	#add a "name" parameter to the Science_Section "child" class
    def __init__(self, book, shelf, name):
    	super().__init__(book, shelf)
    	self.name=name
    #add a method to the Science_Section "child" class
    def printselectedsection(self):
    	print("Selected Section :",self.name)
"""
create an object of the Science_Section "child" class
and pass values for book, shelf and name 
that will change the inherted values of book and shelf
"""
day47=Science_Section(20, 4, "Physics books") 
#access and print the value of "name" property 
day47.printselectedsection()
#access and print the reassigned values for "book" and "shelf" properties
print("Updating,\nThere are:",day47.book,"Books distributed over",day47.shelf,"Shelves in the Library")

d3674744a6b2f7c2c9e0818013ae10d73e175393
<mask token>


class Science_Section(Library):

    def __init__(self, book, shelf, name):
        super().__init__(book, shelf)
        self.name = name

    def printselectedsection(self):
        print('Selected Section :', self.name)


<mask token>

<mask token>


class Science_Section(Library):

    def __init__(self, book, shelf, name):
        super().__init__(book, shelf)
        self.name = name

    def printselectedsection(self):
        print('Selected Section :', self.name)


<mask token>
day47.printselectedsection()
print("""Updating,
There are:""", day47.book, 'Books distributed over',
    day47.shelf, 'Shelves in the Library')

<mask token>


class Science_Section(Library):

    def __init__(self, book, shelf, name):
        super().__init__(book, shelf)
        self.name = name

    def printselectedsection(self):
        print('Selected Section :', self.name)


<mask token>
day47 = Science_Section(20, 4, 'Physics books')
day47.printselectedsection()
print("""Updating,
There are:""", day47.book, 'Books distributed over',
    day47.shelf, 'Shelves in the Library')

from Day46 import Library


class Science_Section(Library):

    def __init__(self, book, shelf, name):
        super().__init__(book, shelf)
        self.name = name

    def printselectedsection(self):
        print('Selected Section :', self.name)


<mask token>
day47 = Science_Section(20, 4, 'Physics books')
day47.printselectedsection()
print("""Updating,
There are:""", day47.book, 'Books distributed over',
    day47.shelf, 'Shelves in the Library')

#challenge 2 for week 7
#import the perant "Library" class 
from Day46 import Library

#create a child class named Science_Section
class Science_Section(Library):
	#add a "name" parameter to the Science_Section "child" class
    def __init__(self, book, shelf, name):
    	super().__init__(book, shelf)
    	self.name=name
    #add a method to the Science_Section "child" class
    def printselectedsection(self):
    	print("Selected Section :",self.name)
"""
create an object of the Science_Section "child" class
and pass values for book, shelf and name 
that will change the inherted values of book and shelf
"""
day47=Science_Section(20, 4, "Physics books") 
#access and print the value of "name" property 
day47.printselectedsection()
#access and print the reassigned values for "book" and "shelf" properties
print("Updating,\nThere are:",day47.book,"Books distributed over",day47.shelf,"Shelves in the Library")
