Theme upload and activate

I downloaded some themes from internet as shown in the video and upload and installed one of those themes. But now when I start the wordpress it shows me fatal error. It is as follow-
“Fatal error: Call to undefined function get_parent_theme_file_path() in C:\xampp\htdocs\wordpress\wp-content\themes\construction-firm\functions.php on line 242”

Please, anybody have solution ,help to solve it!

update your wordpress

https://www.google.com/search?q=call+to+undefined+function+get_parent_theme_file_path()+wordpress&rlz=1C1RXQR_enIN947IN947&sxsrf=ALeKk02bj6x3Nq4Tg8rZosiLCzamarwmfQ%3A1628543849359&ei=aZsRYbaLFb-H4-EPppea4A4&oq=call+to+undefined+function+get_parent_theme_file_path()+wordpress&gs_lcp=Cgdnd3Mtd2l6EAM6BwgAEEcQsAM6BAgjECc6BggAEBYQHjoFCAAQgAQ6CAgAEBYQChAeOgYIABANEB46BAgAEA06BggAEAUQHjoFCAAQzQJKBAhBGABQxPwCWKXuBWCi8gVoB3ACeACAAfkWiAG1SJIBEDAuMjIuNi4xLjYtMS45LTGYAQCgAQHIAQjAAQE&sclient=gws-wiz&ved=0ahUKEwj245DN7qTyAhW_wzgGHaaLBuwQ4dUDCA4&uact=5