On the NoMethodError problem of Ruby

class Person-sharp inherits this subclass
def initialize (name,age)

@name=name
@age=age
puts "This is the Father Class -sharp{@name},-sharp{@age}"

end

def Call1

puts "The name is -sharp{@name},and the age of him is -sharp{@age}"  -sharpdefination

end

def Function1

puts "Sleeping...Age:9"

end

def getPublic

puts ":"
self.Function1

end

private: Function1
end

father=Person.new ("charles", 23)
father.getPublic

the problem is as follows:
This is the Father Class charles,23
/ home/rcctp00013258/RubymineProjects/Project1/Succeed/father.rb:20:in `getPublic" call private method here:
: private method `Function1" called for-sharp < Person:0x000000015c7668 @ name= "charles", @ age=23 > (NoMethodError)

from /home/rcctp00013258/RubymineProjects/Project1/Succeed/father.rb:27:in `<main>"

Process finished with exit code 1

Jun.18,2021
Menu