I'm a new comer to wordpress. I must create my very own custom widget and display content on side menu. However, wordpress is not exhibiting the widget despite the fact that it shows in charge pannel of wordpress. I added the CustomWidget towards the Primary Widget Area.

EDIT: I observed the "widget" function is not getting known as, as it is suppose to become the one which perform the rendering.

class CustomWidget extends WP_Widget{
    function CustomWidget(){
        $widget_ops = array('classname' => 'custom_widget', 'description' => __( "Custom Widget") );
        $control_ops = array('width' => 250, 'height' => 400, 'id_base' => 'custom-widget');
        $this->WP_Widget('CustomWidget', 'Custom Widget', $widget_ops, $control_ops);

    function widget($args, $instance){
        $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title']);
        $menu_order = $instance['menu_order'];
        $show_siblings = $instance['show_siblings'];
        $exclude = $instance['exclude'];
        echo $before_widget;
        echo $before_title;
        echo 'Title!!!';
        echo $after_title;
        echo 'Content!!!';
        echo $after_widget;

function CustomWidget_init(){
add_action("widgets_init", "CustomWidget_init");

Add this in the finish of the code

add_action('TB_RenderWidget', array('CustomWidget', 'render'),10,12 );