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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bc7651-51f0d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bc7651-51f0d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?