Abstract Class

From CodeCall Programming Wiki

Jump to: navigation, search

This page is only a stub. You can help us by expanding and improving it!

An abstract class is a class that cannot be instantiated and may or may not have abstract methods. Classes that extend abstract classes must contain all abstract methods of the abstract class.

Examples

Java:

public abstract class CodeCallClass {
   abstract void printCC;
}

PHP:

<?php  
abstract class CodeCallClass  
{  
    abstract public function printCC;  
 
 
    public function __construct()  
    {  
        // Some Code
    } 
 
}  
?>
Personal tools
CodeCall