I have a class as below, assuming this is an object:
if I add a function like this:PHP Code:class house {
private $windows;
function __construct() {
}
function setWindows() {
}
function getWindows() {
}
function countWindows() {
// this is object's method
}
}
Can I call "house class" is an object?PHP Code:class house {
private $windows;
function __construct() {
}
function setWindows() {
}
function getWindows() {
}
function countWindows() {
// this is object's method
// call isGlassWindows() function here
}
function isGlassWindows () {
// this is not object's method
}
}



Reply With Quote






Bookmarks