Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- Class Person {
- private %ime;//Свойство//
- Function_construct(%ime) {
- $this->ime=$ime;
- }
- Function KazvamSe() {
- echo $this->ime;
- }
- }
- $peter=new Person(); //Обект//
- $peter->ime=''Петър Иванов'';
- $peter)>KazvamSe();
- ?<
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement